Code

Various plugins: Use the IS_TRUE and IS_FALSE macros everywhere.
[collectd.git] / src / sensors.c
index fa461a2f6bffd7db8b3dca5dcca02a23e542dc53..8391346b4dc611b060633e8e6b1c828d20d7b67a 100644 (file)
@@ -237,9 +237,7 @@ static int sensors_config (const char *key, const char *value)
        else if (strcasecmp (key, "IgnoreSelected") == 0)
        {
                ignorelist_set_invert (sensor_list, 1);
-               if ((strcasecmp (value, "True") == 0)
-                               || (strcasecmp (value, "Yes") == 0)
-                               || (strcasecmp (value, "On") == 0))
+               if (IS_TRUE (value))
                        ignorelist_set_invert (sensor_list, 0);
        }
        else