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