No need to initialize static bools to false
[collectd.git] / src / statsd.c
index 34ce586..70c1a75 100644 (file)
@@ -65,25 +65,25 @@ static c_avl_tree_t *metrics_tree = NULL;
 static pthread_mutex_t metrics_lock = PTHREAD_MUTEX_INITIALIZER;
 
 static pthread_t network_thread;
-static bool network_thread_running = 0;
-static bool network_thread_shutdown = 0;
+static bool network_thread_running;
+static bool network_thread_shutdown;
 
 static char *conf_node = NULL;
 static char *conf_service = NULL;
 
-static bool conf_delete_counters = 0;
-static bool conf_delete_timers = 0;
-static bool conf_delete_gauges = 0;
-static bool conf_delete_sets = 0;
+static bool conf_delete_counters;
+static bool conf_delete_timers;
+static bool conf_delete_gauges;
+static bool conf_delete_sets;
 
 static double *conf_timer_percentile = NULL;
-static size_t conf_timer_percentile_num = 0;
+static size_t conf_timer_percentile_num;
 
-static bool conf_counter_sum = 0;
-static bool conf_timer_lower = 0;
-static bool conf_timer_upper = 0;
-static bool conf_timer_sum = 0;
-static bool conf_timer_count = 0;
+static bool conf_counter_sum;
+static bool conf_timer_lower;
+static bool conf_timer_upper;
+static bool conf_timer_sum;
+static bool conf_timer_count;
 
 /* Must hold metrics_lock when calling this function. */
 static statsd_metric_t *statsd_metric_lookup_unsafe(char const *name, /* {{{ */