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 --- ot_config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ot_config.h') diff --git a/ot_config.h b/ot_config.h index ab25e2c..059573a 100644 --- a/ot_config.h +++ b/ot_config.h @@ -22,10 +22,10 @@ typedef struct { int64_t sock; } ot_listen; -extern char *g_redirecturl; -extern char *g_serverdir; -extern char *g_serveruser; -extern char *g_statefile; +extern const char *g_redirecturl; +extern const char *g_serverdir; +extern const char *g_serveruser; +extern const char *g_statefile; /* Reads the command line and every config file it names. Exits on error. */ void config_parse(int argc, char **argv); -- cgit v1.3