X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=e90c1a4e234269edc2b4ab5d497fc55eb309fa3b;hb=589c5f25f9cb723575fa16dd22e73dc9e7af0cfd;hp=e830c420c56349900bb7b825acc5ad2b590c0223;hpb=973b70c411688212c081f5e90b89bd657785b81c;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index e830c420..e90c1a4e 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); }