X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdcached.c;h=bca10be3e37eb5c662cfdb7a2556b7847636e8ab;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=8755400b7debcea38742c6d24ba56e69201e793b;hpb=3f1def59ca8cd58cd5671535624d7c725a2d0445;p=collectd.git diff --git a/src/rrdcached.c b/src/rrdcached.c index 8755400b..bca10be3 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -77,7 +77,7 @@ static int value_list_to_string (char *buffer, int buffer_len, if ((ds->ds[i].type != DS_TYPE_COUNTER) && (ds->ds[i].type != DS_TYPE_GAUGE) && (ds->ds[i].type != DS_TYPE_DERIVE) - && (ds->ds[i].type != DS_TYPE_ABSOLUTE) + && (ds->ds[i].type != DS_TYPE_ABSOLUTE)) return (-1); if (ds->ds[i].type == DS_TYPE_COUNTER) @@ -192,18 +192,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;