From 6ab9188d0cec3d887f537894ed669fe803049746 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 04:56:27 +0200 Subject: Implement a tiny mmap wrapper ourselves, replacing libowfat's wrapper --- tests/stubs.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'tests') diff --git a/tests/stubs.c b/tests/stubs.c index febdd7b..ce93071 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -14,21 +14,7 @@ void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } /* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser - is reachable. These four belong to accesslist_readfile and the reload - worker, neither of which any test drives. */ -time_t g_now_seconds; + is reachable. These two belong to accesslist_readfile and the reload worker, + neither of which any test drives. */ +time_t g_now_seconds; volatile int g_opentracker_running; - -const char *mmap_read(const char *filename, size_t *filesize); -const char *mmap_read(const char *filename, size_t *filesize) { - (void)filename; - *filesize = 0; - return NULL; -} - -int mmap_unmap(const char *mapped, size_t maplen); -int mmap_unmap(const char *mapped, size_t maplen) { - (void)mapped; - (void)maplen; - return 0; -} -- cgit v1.3