projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_graphite plugin: Coding style fixes.
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
13e01ba
..
9169000
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-39,9
+39,6
@@
#if HAVE_PTHREAD_H
# include <pthread.h>
#endif
#if HAVE_PTHREAD_H
# include <pthread.h>
#endif
-#if HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
@@
-2443,7
+2440,7
@@
static int network_receive (void) /* {{{ */
char buffer[network_config_packet_size];
int buffer_len;
char buffer[network_config_packet_size];
int buffer_len;
-
in
t i;
+
size_
t i;
int status = 0;
receive_list_entry_t *private_list_head;
int status = 0;
receive_list_entry_t *private_list_head;
@@
-3105,7
+3102,7
@@
static int network_config_add_listen (const oconfig_item_t *ci) /* {{{ */
status = sockent_server_listen (se);
if (status != 0)
{
status = sockent_server_listen (se);
if (status != 0)
{
- ERROR ("network plugin: network_config_add_
server
: sockent_server_listen failed.");
+ ERROR ("network plugin: network_config_add_
listen
: sockent_server_listen failed.");
sockent_destroy (se);
return (-1);
}
sockent_destroy (se);
return (-1);
}