From de67a4a721c0fda9a9b5955f235baafba9ba393d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 23 Oct 2026 21:48:58 +0200 Subject: Rework config file parser and tidy up mem inits --- ot_mutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_mutex.c') diff --git a/ot_mutex.c b/ot_mutex.c index be3ddf9..300da3a 100644 --- a/ot_mutex.c +++ b/ot_mutex.c @@ -7,11 +7,11 @@ #include #include #include +#include #include #include /* Libowfat */ -#include "byte.h" #include "io.h" #include "uint32.h" @@ -259,7 +259,7 @@ void mutex_init(void) { pthread_cond_init(&tasklist_being_filled, NULL); for (i = 0; i < OT_BUCKET_COUNT; ++i) pthread_mutex_init(bucket_mutex + i, NULL); - byte_zero(all_torrents, sizeof(all_torrents)); + memset(all_torrents, 0, sizeof(all_torrents)); } void mutex_deinit(void) { @@ -268,5 +268,5 @@ void mutex_deinit(void) { pthread_mutex_destroy(bucket_mutex + i); pthread_mutex_destroy(&tasklist_mutex); pthread_cond_destroy(&tasklist_being_filled); - byte_zero(all_torrents, sizeof(all_torrents)); + memset(all_torrents, 0, sizeof(all_torrents)); } -- cgit v1.3