From 5bc4c0663576fd99bb06068e6dfd624690865c89 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 25 Oct 2026 19:42:27 +0100 Subject: Be stricter about const char*, Wwrite-strings will warn in the future and we don't want to try to overwrite string literals --- tests/stubs.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/stubs.c') diff --git a/tests/stubs.c b/tests/stubs.c index ce93071..09a7312 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -18,3 +18,12 @@ void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } neither of which any test drives. */ time_t g_now_seconds; volatile int g_opentracker_running; + +/* ot_mutex.c wakes the main loop through the self pipe when a result is + ready. The queue tests never get that far. */ +int g_self_pipe[2] = {-1, -1}; +long io_trywrite(long d, const char *buf, long len) { + (void)d; + (void)buf; + return len; +} -- cgit v1.3