From 92cc06313a65f9b48172d4d3f776b7205e54798d Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:52:22 +0200 Subject: [PATCH] network plugin: fd_num is unsigned [src/network.c:2314]: (style) Checking if unsigned variable 'fd_num' is less than zero. --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2