X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftcpconns.c;h=d68cd0968ca70a126dfd37d839f41ebe0be2fe77;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=f164b53b4858406a27e8cd49040a88cc02f61e20;hpb=108068f268cad453e5d3b54e288917409db1e467;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;