X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=73fe15431a96e8d39f52b429aac7998f2b291f85;hb=4858a84e3e51830a103a5ff4aee6b844b708ce62;hp=75e9a1c4782035bbeffcbfc232a9fcb5d3936512;hpb=eb4aab6b6d5af827b5c1fb2f7d2550b7de22fa90;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index 75e9a1c4..73fe1543 100644 --- a/src/protocols.c +++ b/src/protocols.c @@ -224,9 +224,7 @@ static int protocols_config (const char *key, const char *value) else if (strcasecmp (key, "IgnoreSelected") == 0) { int invert = 1; - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) invert = 0; ignorelist_set_invert (values_list, invert); }