X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdf.c;h=4b3cba019cea9219289cc8adef7633a05e30a9ba;hb=65dba471769a4e69bc505c758015ffdfb76a6053;hp=b2be8e5eb77a40f55abb499934956eaefe05a3f7;hpb=debf97972666d688bace07d1b5ee3ef958ac7cee;p=collectd.git diff --git a/src/df.c b/src/df.c index b2be8e5e..4b3cba01 100644 --- a/src/df.c +++ b/src/df.c @@ -60,8 +60,8 @@ static ignorelist_t *il_device = NULL; static ignorelist_t *il_mountpoint = NULL; static ignorelist_t *il_fstype = NULL; -static _Bool by_device = false; -static _Bool report_inodes = false; +static _Bool by_device = 0; +static _Bool report_inodes = 0; static int df_init (void) { @@ -116,16 +116,16 @@ static int df_config (const char *key, const char *value) else if (strcasecmp (key, "ReportByDevice") == 0) { if (IS_TRUE (value)) - by_device = true; + by_device = 1; return (0); } else if (strcasecmp (key, "ReportInodes") == 0) { if (IS_TRUE (value)) - report_inodes = true; + report_inodes = 1; else - report_inodes = false; + report_inodes = 0; return (0); }