aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c
index e0214ce9d..66f125d0d 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -83,13 +83,11 @@ typedef enum {
KEY_PARSER_DONE
} key_parser_state_t;
-static gboolean
+static bool
str2bool(char *str)
{
- if (!strcasecmp(str, "yes") || !strcasecmp(str, "true") ||
- !strcasecmp(str, "on") || !strcasecmp(str, "1"))
- return TRUE;
- return FALSE;
+ return strcasecmp(str, "yes") == 0 || strcasecmp(str, "true") == 0 ||
+ strcasecmp(str, "on") == 0 || strcasecmp(str, "1") == 0;
}
static int