From edf874c9d0daf9a8be97918fefec0ea75f6be999 Mon Sep 17 00:00:00 2001 From: Richard Aas Date: Tue, 8 Mar 2011 09:47:12 +0000 Subject: [PATCH] added conf_get_bool --- src/conf/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf/conf.c b/src/conf/conf.c index d0f6b27..7f1ef8f 100644 --- a/src/conf/conf.c +++ b/src/conf/conf.c @@ -245,6 +245,8 @@ int conf_get_bool(struct conf *conf, const char *name, bool *val) *val = true; else if (!pl_strcasecmp(&pl, "yes")) *val = true; + else if (!pl_strcasecmp(&pl, "1")) + *val = true; else *val = false;