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 --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 0af0d17..96a265a 100644 --- a/opentracker.c +++ b/opentracker.c @@ -305,7 +305,7 @@ static void listen_bind_one(ot_listen *entry) { #ifdef _DEBUG { - char *protos[] = {"TCP", "UDP", "UDP mcast"}; + const char *protos[] = {"TCP", "UDP", "UDP mcast"}; char _debug[512]; int off = snprintf(_debug, sizeof(_debug), "Binding socket type %s to address [", protos[entry->proto]); off += ip_format(_debug + off, entry->ip); -- cgit v1.3