X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffhcount.c;h=9bcb9115bf702423b24bbe9e954eefe1d24d9e5e;hb=b9b5e5d573d0011c4f3276e9b84b73ba4dd2e870;hp=97f0438c94f024fb4f526fef7130f38bdf5a1c18;hpb=4c4988b1c5d33ed70b2d6d6e5a4eae13cab9255b;p=collectd.git diff --git a/src/fhcount.c b/src/fhcount.c index 97f0438c..9bcb9115 100644 --- a/src/fhcount.c +++ b/src/fhcount.c @@ -25,25 +25,25 @@ static const char *config_keys[] = {"ValuesAbsolute", "ValuesPercentage"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static _Bool values_absolute = 1; -static _Bool values_percentage = 0; +static bool values_absolute = true; +static bool values_percentage; static int fhcount_config(const char *key, const char *value) { int ret = -1; if (strcasecmp(key, "ValuesAbsolute") == 0) { if (IS_TRUE(value)) { - values_absolute = 1; + values_absolute = true; } else { - values_absolute = 0; + values_absolute = false; } ret = 0; } else if (strcasecmp(key, "ValuesPercentage") == 0) { if (IS_TRUE(value)) { - values_percentage = 1; + values_percentage = true; } else { - values_percentage = 0; + values_percentage = false; } ret = 0;