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_stats.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 58ac4b8..15eef75 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -19,7 +19,6 @@ #endif /* Libowfat */ -#include "byte.h" #include "io.h" #include "ip4.h" #include "ip6.h" @@ -339,9 +338,9 @@ size_t stats_top_txt(char *reply, size_t amount) { if (amount > 100) amount = 100; - byte_zero(top100s, sizeof(top100s)); - byte_zero(top100c, sizeof(top100c)); - byte_zero(top100l, sizeof(top100l)); + memset(top100s, 0, sizeof(top100s)); + memset(top100c, 0, sizeof(top100c)); + memset(top100l, 0, sizeof(top100l)); /* Iterate over complete torrent list */ for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { -- cgit v1.3