X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;fp=src%2Fthermal.c;h=2b708052d707461afa3f9976f3bd9132affa79a6;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=fe54aee443790617b30c22915414bcd4c5123b5c;hpb=53f791cb6b55512101a0a0f42f9d91c356fa9591;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index fe54aee4..2b708052 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