X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnetwork.c;h=270bed29405c1778361600080e1b70f8d2d5caa4;hb=f25d207699e013bb47c0083fe56b8358a98f6f4d;hp=3b5a0f2de69d07a7f2b16265708c746fe35644af;hpb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;p=collectd.git diff --git a/src/network.c b/src/network.c index 3b5a0f2d..270bed29 100644 --- a/src/network.c +++ b/src/network.c @@ -264,8 +264,8 @@ typedef struct receive_list_entry_s receive_list_entry_t; static int network_config_ttl = 0; /* Ethernet - (IPv6 + UDP) = 1500 - (40 + 8) = 1452 */ static size_t network_config_packet_size = 1452; -static bool network_config_forward = 0; -static bool network_config_stats = 0; +static bool network_config_forward; +static bool network_config_stats; static sockent_t *sending_sockets = NULL; @@ -3096,7 +3096,7 @@ static int network_stats_read(void) /* {{{ */ } /* }}} int network_stats_read */ static int network_init(void) { - static bool have_init = 0; + static bool have_init; /* Check if we were already initialized. If so, just return - there's * nothing more to do (for now, that is). */