X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=73fe15431a96e8d39f52b429aac7998f2b291f85;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=75e9a1c4782035bbeffcbfc232a9fcb5d3936512;hpb=fe9ba13c8866ada19f7a347f3757d4c740613cdb;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); }