X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftcpconns.c;h=d68cd0968ca70a126dfd37d839f41ebe0be2fe77;hb=f1b5b8611d87a7904c31ae4b28ea47f11f3c38b9;hp=f164b53b4858406a27e8cd49040a88cc02f61e20;hpb=37905c5a2370c8e6edae5011978773eeaa589d09;p=collectd.git diff --git a/src/tcpconns.c b/src/tcpconns.c index f164b53b..d68cd096 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -454,9 +454,7 @@ static int conn_config (const char *key, const char *value) { if (strcasecmp (key, "ListeningPorts") == 0) { - if ((strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "True") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) port_collect_listening = 1; else port_collect_listening = 0;