diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-04-13 17:35:29 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-04-13 17:35:29 +0200 |
| commit | b0a0432e8d26414d77cfeb81ab2e6c10896c6883 (patch) | |
| tree | 0adec918eedb6712c82eb62ac9239519eeab941a /ot_accesslist.c | |
| parent | 5d2033ac8932d223a00d7d6e29cedd9b2e23bc7f (diff) | |
Silence warnings about function declaration without a prototype for functions taking void
Diffstat (limited to 'ot_accesslist.c')
| -rw-r--r-- | ot_accesslist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 253fe95..f1bb885 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
| @@ -342,7 +342,7 @@ static void *accesslist_deleter_worker(void *args) { | |||
| 342 | #endif | 342 | #endif |
| 343 | 343 | ||
| 344 | static pthread_t thread_id; | 344 | static pthread_t thread_id; |
| 345 | void accesslist_init() { | 345 | void accesslist_init(void) { |
| 346 | pthread_mutex_init(&g_accesslist_mutex, NULL); | 346 | pthread_mutex_init(&g_accesslist_mutex, NULL); |
| 347 | pthread_create(&thread_id, NULL, accesslist_worker, NULL); | 347 | pthread_create(&thread_id, NULL, accesslist_worker, NULL); |
| 348 | #ifdef WANT_DYNAMIC_ACCESSLIST | 348 | #ifdef WANT_DYNAMIC_ACCESSLIST |
| @@ -444,7 +444,7 @@ void loglist_add_network(const ot_net *net) { | |||
| 444 | pthread_mutex_unlock(&g_lognets_list_mutex); | 444 | pthread_mutex_unlock(&g_lognets_list_mutex); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void loglist_reset() { | 447 | void loglist_reset(void) { |
| 448 | pthread_mutex_lock(&g_lognets_list_mutex); | 448 | pthread_mutex_lock(&g_lognets_list_mutex); |
| 449 | free(g_lognets_list.data); | 449 | free(g_lognets_list.data); |
| 450 | g_lognets_list.data = 0; | 450 | g_lognets_list.data = 0; |
