diff --git a/src/rrdcached.c b/src/rrdcached.c
index 191df58e93599094b16cb9752fc517d1f44ffb7c..34e860ba6dc72ccff994e7dc999ca79682292c63 100644 (file)
--- a/src/rrdcached.c
+++ b/src/rrdcached.c
#include "utils_rrdcreate.h"
#undef HAVE_CONFIG_H
+#include <rrd.h>
#include <rrd_client.h>
/*
}
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;