summaryrefslogtreecommitdiff
path: root/ot_config.h
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 /ot_config.h
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 'ot_config.h')
-rw-r--r--ot_config.h8
1 files changed, 4 insertions, 4 deletions
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 {
22 int64_t sock; 22 int64_t sock;
23} ot_listen; 23} ot_listen;
24 24
25extern char *g_redirecturl; 25extern const char *g_redirecturl;
26extern char *g_serverdir; 26extern const char *g_serverdir;
27extern char *g_serveruser; 27extern const char *g_serveruser;
28extern char *g_statefile; 28extern const char *g_statefile;
29 29
30/* Reads the command line and every config file it names. Exits on error. */ 30/* Reads the command line and every config file it names. Exits on error. */
31void config_parse(int argc, char **argv); 31void config_parse(int argc, char **argv);