diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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: |