X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdcached.c;h=34e860ba6dc72ccff994e7dc999ca79682292c63;hb=bbbf37d55a3959951604c4be482e9a705a0f86d9;hp=191df58e93599094b16cb9752fc517d1f44ffb7c;hpb=8be9c73cc216609a54a1b997aad8a3d646a0a43f;p=collectd.git diff --git a/src/rrdcached.c b/src/rrdcached.c index 191df58e..34e860ba 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -25,6 +25,7 @@ #include "utils_rrdcreate.h" #undef HAVE_CONFIG_H +#include #include /* @@ -193,18 +194,14 @@ static int rc_config (const char *key, const char *value) } else if (strcasecmp ("CreateFiles", key) == 0) { - if ((strcasecmp ("false", value) == 0) - || (strcasecmp ("no", value) == 0) - || (strcasecmp ("off", value) == 0)) + if (IS_FALSE (value)) config_create_files = 0; else config_create_files = 1; } else if (strcasecmp ("CollectStatistics", key) == 0) { - if ((strcasecmp ("false", value) == 0) - || (strcasecmp ("no", value) == 0) - || (strcasecmp ("off", value) == 0)) + if (IS_FALSE (value)) config_collect_stats = 0; else config_collect_stats = 1;