summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e924f8)
raw | patch | inline | side by side (parent: 1e924f8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:52:22 +0000 (10:52 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:52:22 +0000 (10:52 +0200) |
[src/network.c:2314]: (style) Checking if unsigned variable 'fd_num' is less than zero.
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 3f39aac2d3f8566a0a42d9ab6ed9b47e0767bda0..ccd033b1c6476484a34751b0d8f1d28ed6256ca5 100644 (file)
--- a/src/network.c
+++ b/src/network.c
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 */