diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:42:27 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:42:27 +0100 |
| commit | 5bc4c0663576fd99bb06068e6dfd624690865c89 (patch) | |
| tree | e1e90e6966abebf960ed9c9d4ed0937be22961ff /ot_config.h | |
| parent | 33b095eb26ab8be3af48d8bd034262cd5ab03a04 (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.h | 8 |
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 | ||
| 25 | extern char *g_redirecturl; | 25 | extern const char *g_redirecturl; |
| 26 | extern char *g_serverdir; | 26 | extern const char *g_serverdir; |
| 27 | extern char *g_serveruser; | 27 | extern const char *g_serveruser; |
| 28 | extern char *g_statefile; | 28 | extern 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. */ |
| 31 | void config_parse(int argc, char **argv); | 31 | void config_parse(int argc, char **argv); |
