X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fgmond.c;h=ca654194f6d277c9bacc4c2c758aefcd65dca018;hp=6ed4115da8e241b6f91e0a4686133baa4fab00df;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=a396da422740caf336a6d594515e8d80de6f440a diff --git a/src/gmond.c b/src/gmond.c index 6ed4115d..ca654194 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -89,14 +89,14 @@ static char *mc_receive_group; static char *mc_receive_port; static struct pollfd *mc_receive_sockets; -static size_t mc_receive_sockets_num = 0; +static size_t mc_receive_sockets_num; static socket_entry_t *mc_send_sockets; -static size_t mc_send_sockets_num = 0; +static size_t mc_send_sockets_num; static pthread_mutex_t mc_send_sockets_lock = PTHREAD_MUTEX_INITIALIZER; -static int mc_receive_thread_loop = 0; -static int mc_receive_thread_running = 0; +static int mc_receive_thread_loop; +static int mc_receive_thread_running; static pthread_t mc_receive_thread_id; static metric_map_t metric_map_default[] = @@ -123,7 +123,7 @@ static metric_map_t metric_map_default[] = static size_t metric_map_len_default = STATIC_ARRAY_SIZE(metric_map_default); static metric_map_t *metric_map; -static size_t metric_map_len = 0; +static size_t metric_map_len; static c_avl_tree_t *staging_tree; static pthread_mutex_t staging_lock = PTHREAD_MUTEX_INITIALIZER;