X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsensors.c;h=ddd09d9b4e6d8004f0586d2964776ae6c0c2e975;hb=6e41c3b1f024d7944e5e8010a87933555c662474;hp=572d41f1f34b6d4580a7a6bdd5dda56d6397c2e2;hpb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index 572d41f1..ddd09d9b 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -158,7 +158,7 @@ typedef struct featurelist { } featurelist_t; static char *conffile = NULL; -static _Bool use_labels = 0; +static bool use_labels; /* #endif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ #else /* if SENSORS_API_VERSION >= 0x500 */ @@ -225,7 +225,7 @@ static int sensors_config(const char *key, const char *value) { } #if (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) else if (strcasecmp(key, "UseLabels") == 0) { - use_labels = IS_TRUE(value) ? 1 : 0; + use_labels = IS_TRUE(value); } #endif else {