diff options
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -741,7 +741,7 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_ | |||
| 741 | } | 741 | } |
| 742 | } | 742 | } |
| 743 | 743 | ||
| 744 | void stats_cleanup() { | 744 | void 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) { | |||
| 768 | void stats_deliver(int64 sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); } | 768 | void stats_deliver(int64 sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); } |
| 769 | 769 | ||
| 770 | static pthread_t thread_id; | 770 | static pthread_t thread_id; |
| 771 | void stats_init() { | 771 | void 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 | ||
| 776 | void stats_deinit() { | 776 | void stats_deinit(void) { |
| 777 | pthread_cancel(thread_id); | 777 | pthread_cancel(thread_id); |
| 778 | } | 778 | } |
