X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;h=cbd168b41bad622c09e86dd803eb8f52d17a1ca5;hb=f25d207699e013bb47c0083fe56b8358a98f6f4d;hp=9da8fa5fbb1d92c7a9d80b9defbce04b3f10fdf0;hpb=a1b19a64325554b0410daaefed3ce229b34958b7;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index 9da8fa5f..cbd168b4 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -35,7 +35,7 @@ static const char *config_keys[] = {"Device", "IgnoreSelected", static const char *const dirname_sysfs = "/sys/class/thermal"; static const char *const dirname_procfs = "/proc/acpi/thermal_zone"; -static _Bool force_procfs = 0; +static bool force_procfs; static ignorelist_t *device_list; enum dev_type { TEMP = 0, COOLING_DEV }; @@ -59,7 +59,7 @@ static int thermal_sysfs_device_read(const char __attribute__((unused)) * dir, const char *name, void __attribute__((unused)) * user_data) { char filename[PATH_MAX]; - _Bool success = 0; + bool success = 0; value_t value; if (device_list && ignorelist_match(device_list, name))