X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdcached.c;h=34e860ba6dc72ccff994e7dc999ca79682292c63;hb=c3533f89f324411112a8b80d7ff0d7afd1e70b5d;hp=728ada459d821f2c7cd4d009e14cdd882e01f59d;hpb=1e4db580e37d235755de0c4a4c08ba7a6ac7bb4c;p=collectd.git diff --git a/src/rrdcached.c b/src/rrdcached.c index 728ada45..34e860ba 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -24,6 +24,8 @@ #include "common.h" #include "utils_rrdcreate.h" +#undef HAVE_CONFIG_H +#include #include /* @@ -192,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;