summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.c b/config.c
index c49a7e9..5affeff 100644
--- a/config.c
+++ b/config.c
@@ -337,6 +337,17 @@ config_parse_line(struct cfg *cfg, const char *filename, char **buf,
break;
}
+ case CFG_VAL_TYPE_BOOL:
+ if (!strcasecmp(tmp, "yes"))
+ rvalue->boolean = true;
+ else if (!strcasecmp(tmp, "no"))
+ rvalue->boolean = false;
+ else {
+ error("invalid boolean value (%s)\n", tmp);
+ goto out;
+ }
+ break;
+
case CFG_VAL_TYPE_INVALID:
/* fall through */
default: