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
e90bb39
..
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
@@
-772,7
+769,7
@@
static int write_part_string (char **ret_buffer, int *ret_buffer_len,
} /* int write_part_string */
static int parse_part_values (void **ret_buffer, size_t *ret_buffer_len,
} /* int write_part_string */
static int parse_part_values (void **ret_buffer, size_t *ret_buffer_len,
- value_t **ret_values,
in
t *ret_num_values)
+ value_t **ret_values,
size_
t *ret_num_values)
{
char *buffer = *ret_buffer;
size_t buffer_len = *ret_buffer_len;
{
char *buffer = *ret_buffer;
size_t buffer_len = *ret_buffer_len;
@@
-876,7
+873,7
@@
static int parse_part_values (void **ret_buffer, size_t *ret_buffer_len,
*ret_buffer = buffer;
*ret_buffer_len = buffer_len - pkg_length;
*ret_buffer = buffer;
*ret_buffer_len = buffer_len - pkg_length;
- *ret_num_values = pkg_numval;
+ *ret_num_values =
(size_t)
pkg_numval;
*ret_values = pkg_values;
sfree (pkg_types);
*ret_values = pkg_values;
sfree (pkg_types);
@@
-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);
}