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 --- proxy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'proxy.c') diff --git a/proxy.c b/proxy.c index 6bf45df..5a7698b 100644 --- a/proxy.c +++ b/proxy.c @@ -18,7 +18,6 @@ #include /* Libowfat */ -#include "byte.h" #include "io.h" #include "iob.h" #include "ip6.h" @@ -142,8 +141,8 @@ size_t add_peer_to_torrent_proxy(ot_hash hash, ot_peer *peer, size_t peer_size) return -1; } - byte_zero(torrent->peer_list6, sizeof(ot_peerlist)); - byte_zero(torrent->peer_list4, sizeof(ot_peerlist)); + memset(torrent->peer_list6, 0, sizeof(ot_peerlist)); + memset(torrent->peer_list4, 0, sizeof(ot_peerlist)); } peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; -- cgit v1.3