X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fnetwork.c;fp=src%2Fnetwork.c;h=abed5b8771bc333f4fc44391f227fc4e81a6bc74;hp=ab5ff2996f5891efebe03f77332d9348ee22d8d3;hb=a396da422740caf336a6d594515e8d80de6f440a;hpb=6c170c99262c1d9678943122428f6d9f1353aaf6 diff --git a/src/network.c b/src/network.c index ab5ff299..abed5b87 100644 --- a/src/network.c +++ b/src/network.c @@ -267,16 +267,16 @@ static size_t network_config_packet_size = 1452; static bool network_config_forward; static bool network_config_stats; -static sockent_t *sending_sockets = NULL; +static sockent_t *sending_sockets; -static receive_list_entry_t *receive_list_head = NULL; -static receive_list_entry_t *receive_list_tail = NULL; +static receive_list_entry_t *receive_list_head; +static receive_list_entry_t *receive_list_tail; static pthread_mutex_t receive_list_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t receive_list_cond = PTHREAD_COND_INITIALIZER; static uint64_t receive_list_length = 0; -static sockent_t *listen_sockets = NULL; -static struct pollfd *listen_sockets_pollfd = NULL; +static sockent_t *listen_sockets; +static struct pollfd *listen_sockets_pollfd; static size_t listen_sockets_num = 0; /* The receive and dispatch threads will run as long as `listen_loop' is set to