projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e924f8
)
network plugin: fd_num is unsigned
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
3f39aac
..
ccd033b
100644
(file)
--- 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 */