X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;h=b9d07bf5ce22fcacd55f5dcac729e4ad665b12d5;hb=6c6314c7ccca4dae0b9233061dbdf36040dadffe;hp=fe54aee443790617b30c22915414bcd4c5123b5c;hpb=108068f268cad453e5d3b54e288917409db1e467;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index fe54aee4..b9d07bf5 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -198,17 +198,13 @@ static int thermal_config (const char *key, const char *value) else if (strcasecmp (key, "IgnoreSelected") == 0) { ignorelist_set_invert (device_list, 1); - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) ignorelist_set_invert (device_list, 0); } else if (strcasecmp (key, "ForceUseProcfs") == 0) { force_procfs = 0; - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) force_procfs = 1; } else @@ -222,13 +218,13 @@ static int thermal_config (const char *key, const char *value) static int thermal_sysfs_read (void) { return walk_directory (dirname_sysfs, thermal_sysfs_device_read, - /* user_data = */ NULL); + /* user_data = */ NULL, /* include hidden */ 0); } static int thermal_procfs_read (void) { return walk_directory (dirname_procfs, thermal_procfs_device_read, - /* user_data = */ NULL); + /* user_data = */ NULL, /* include hidden */ 0); } static int thermal_init (void)