summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfgparser.c3
-rw-r--r--cfgparser.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/cfgparser.c b/cfgparser.c
index f405bf7095..29725f24b2 100644
--- a/cfgparser.c
+++ b/cfgparser.c
@@ -160,6 +160,9 @@ static int read_option(char *opt, char *param)
return ERR_FUNC_ERR;
need_param = 0;
break;
+ case CONF_TYPE_PRINT:
+ printf("%s", (char *) config[i].p);
+ exit(1);
default:
printf("picsaba\n");
break;
diff --git a/cfgparser.h b/cfgparser.h
index 3e384f6076..3eb1afdd7a 100644
--- a/cfgparser.h
+++ b/cfgparser.h
@@ -11,6 +11,7 @@
#define CONF_TYPE_STRING 3
#define CONF_TYPE_FUNC 4
#define CONF_TYPE_FUNC_PARAM 5
+#define CONF_TYPE_PRINT 6
#define CONF_CHK_MIN (1<<0)
#define CONF_CHK_MAX (1<<1)