summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-25 19:42:27 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-25 19:42:27 +0100
commit5bc4c0663576fd99bb06068e6dfd624690865c89 (patch)
treee1e90e6966abebf960ed9c9d4ed0937be22961ff /opentracker.c
parent33b095eb26ab8be3af48d8bd034262cd5ab03a04 (diff)
Be stricter about const char*, Wwrite-strings will warn in the future and we don't want to try to overwrite string literals
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
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) {
305 305
306#ifdef _DEBUG 306#ifdef _DEBUG
307 { 307 {
308 char *protos[] = {"TCP", "UDP", "UDP mcast"}; 308 const char *protos[] = {"TCP", "UDP", "UDP mcast"};
309 char _debug[512]; 309 char _debug[512];
310 int off = snprintf(_debug, sizeof(_debug), "Binding socket type %s to address [", protos[entry->proto]); 310 int off = snprintf(_debug, sizeof(_debug), "Binding socket type %s to address [", protos[entry->proto]);
311 off += ip_format(_debug + off, entry->ip); 311 off += ip_format(_debug + off, entry->ip);