From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:52:22 +0000 (+0200) Subject: network plugin: fd_num is unsigned X-Git-Tag: collectd-5.6.0~329^2~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=92cc06313a65f9b48172d4d3f776b7205e54798d;p=collectd.git network plugin: fd_num is unsigned [src/network.c:2314]: (style) Checking if unsigned variable 'fd_num' is less than zero. --- diff --git a/src/network.c b/src/network.c index 3f39aac2..ccd033b1 100644 --- a/src/network.c +++ b/src/network.c @@ -2311,7 +2311,7 @@ static int sockent_server_listen (sockent_t *se) /* {{{ */ freeaddrinfo (ai_list); - if (se->data.server.fd_num <= 0) + if (se->data.server.fd_num == 0) return (-1); return (0); } /* }}} int sockent_server_listen */