summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ot_stats.c b/ot_stats.c
index a9e745c..58ac4b8 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -741,7 +741,7 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_
741 } 741 }
742} 742}
743 743
744void stats_cleanup() { 744void stats_cleanup(void) {
745#ifdef WANT_SPOT_WOODPECKER 745#ifdef WANT_SPOT_WOODPECKER
746 pthread_mutex_lock(&g_woodpeckers_mutex); 746 pthread_mutex_lock(&g_woodpeckers_mutex);
747 stats_shift_down_network_count(&stats_woodpeckers_tree, 0, 1); 747 stats_shift_down_network_count(&stats_woodpeckers_tree, 0, 1);
@@ -768,11 +768,11 @@ static void *stats_worker(void *args) {
768void stats_deliver(int64 sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); } 768void stats_deliver(int64 sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); }
769 769
770static pthread_t thread_id; 770static pthread_t thread_id;
771void stats_init() { 771void stats_init(void) {
772 ot_start_time = g_now_seconds; 772 ot_start_time = g_now_seconds;
773 pthread_create(&thread_id, NULL, stats_worker, NULL); 773 pthread_create(&thread_id, NULL, stats_worker, NULL);
774} 774}
775 775
776void stats_deinit() { 776void stats_deinit(void) {
777 pthread_cancel(thread_id); 777 pthread_cancel(thread_id);
778} 778}