Code

src/utils_avltree.c: Add sanity check to c_avl_destroy().
[collectd.git] / src / netlink.c
index b15768e719d5c7ea847848ea63db4142e703c45c..49c4e990fb47d8ea5c15e5c8ae2b8f132c959d1f 100644 (file)
@@ -526,9 +526,7 @@ static int ir_config (const char *key, const char *value)
     }
     else
     {
-      if ((strcasecmp (fields[0], "yes") == 0)
-         || (strcasecmp (fields[0], "true") == 0)
-         || (strcasecmp (fields[0], "on") == 0))
+      if (IS_TRUE (fields[0]))
        ir_ignorelist_invert = 0;
       else
        ir_ignorelist_invert = 1;