projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disk plugin: fix minor style issue
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
d602dfc
..
64c6d24
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1728,10
+1728,9
@@
static int network_bind_socket(int fd, const struct addrinfo *ai,
#else
int loop = 0;
#endif
#else
int loop = 0;
#endif
- int yes = 1;
/* allow multiple sockets to use the same PORT number */
/* allow multiple sockets to use the same PORT number */
- if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &
yes, sizeof(yes
)) == -1) {
+ if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &
(int){1}, sizeof(int
)) == -1) {
ERROR("network plugin: setsockopt (reuseaddr): %s", STRERRNO);
return -1;
}
ERROR("network plugin: setsockopt (reuseaddr): %s", STRERRNO);
return -1;
}