summaryrefslogtreecommitdiff
path: root/ot_mutex.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-04-13 17:35:29 +0200
committerDirk Engling <erdgeist@erdgeist.org>2026-04-13 17:35:29 +0200
commitb0a0432e8d26414d77cfeb81ab2e6c10896c6883 (patch)
tree0adec918eedb6712c82eb62ac9239519eeab941a /ot_mutex.c
parent5d2033ac8932d223a00d7d6e29cedd9b2e23bc7f (diff)
Silence warnings about function declaration without a prototype for functions taking void
Diffstat (limited to 'ot_mutex.c')
-rw-r--r--ot_mutex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ot_mutex.c b/ot_mutex.c
index a1dba1f..be3ddf9 100644
--- a/ot_mutex.c
+++ b/ot_mutex.c
@@ -48,7 +48,7 @@ void mutex_bucket_unlock_by_hash(ot_hash const hash, int delta_torrentcount) {
48 mutex_bucket_unlock(uint32_read_big((char *)hash) >> OT_BUCKET_COUNT_SHIFT, delta_torrentcount); 48 mutex_bucket_unlock(uint32_read_big((char *)hash) >> OT_BUCKET_COUNT_SHIFT, delta_torrentcount);
49} 49}
50 50
51size_t mutex_get_torrent_count() { return g_torrent_count; } 51size_t mutex_get_torrent_count(void) { return g_torrent_count; }
52 52
53/* TaskQueue Magic */ 53/* TaskQueue Magic */
54 54
@@ -253,7 +253,7 @@ int64 mutex_workqueue_popresult(size_t *iovec_entries, struct iovec **iovec, int
253 return sock; 253 return sock;
254} 254}
255 255
256void mutex_init() { 256void mutex_init(void) {
257 size_t i; 257 size_t i;
258 pthread_mutex_init(&tasklist_mutex, NULL); 258 pthread_mutex_init(&tasklist_mutex, NULL);
259 pthread_cond_init(&tasklist_being_filled, NULL); 259 pthread_cond_init(&tasklist_being_filled, NULL);
@@ -262,7 +262,7 @@ void mutex_init() {
262 byte_zero(all_torrents, sizeof(all_torrents)); 262 byte_zero(all_torrents, sizeof(all_torrents));
263} 263}
264 264
265void mutex_deinit() { 265void mutex_deinit(void) {
266 size_t i; 266 size_t i;
267 for (i = 0; i < OT_BUCKET_COUNT; ++i) 267 for (i = 0; i < OT_BUCKET_COUNT; ++i)
268 pthread_mutex_destroy(bucket_mutex + i); 268 pthread_mutex_destroy(bucket_mutex + i);