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_accesslist.c | |
| 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_accesslist.c')
| -rw-r--r-- | ot_accesslist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 2465ada..d7e88ee 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
| @@ -32,10 +32,10 @@ | |||
| 32 | 32 | ||
| 33 | /* GLOBAL VARIABLES */ | 33 | /* GLOBAL VARIABLES */ |
| 34 | #ifdef WANT_ACCESSLIST | 34 | #ifdef WANT_ACCESSLIST |
| 35 | char *g_accesslist_filename = NULL; | 35 | const char *g_accesslist_filename = NULL; |
| 36 | #ifdef WANT_DYNAMIC_ACCESSLIST | 36 | #ifdef WANT_DYNAMIC_ACCESSLIST |
| 37 | char *g_accesslist_pipe_add = NULL; | 37 | const char *g_accesslist_pipe_add = NULL; |
| 38 | char *g_accesslist_pipe_delete = NULL; | 38 | const char *g_accesslist_pipe_delete = NULL; |
| 39 | #endif | 39 | #endif |
| 40 | static pthread_mutex_t g_accesslist_mutex; | 40 | static pthread_mutex_t g_accesslist_mutex; |
| 41 | 41 | ||
| @@ -272,7 +272,7 @@ static void *accesslist_worker(void *args) { | |||
| 272 | 272 | ||
| 273 | #ifdef WANT_DYNAMIC_ACCESSLIST | 273 | #ifdef WANT_DYNAMIC_ACCESSLIST |
| 274 | static pthread_t thread_adder_id, thread_deleter_id; | 274 | static pthread_t thread_adder_id, thread_deleter_id; |
| 275 | static void *accesslist_adddel_worker(char *fifoname, ot_accesslist *_Atomic *adding_to, ot_accesslist *_Atomic *removing_from) { | 275 | static void *accesslist_adddel_worker(const char *fifoname, ot_accesslist *_Atomic *adding_to, ot_accesslist *_Atomic *removing_from) { |
| 276 | struct stat st; | 276 | struct stat st; |
| 277 | 277 | ||
| 278 | if (!stat(fifoname, &st)) { | 278 | if (!stat(fifoname, &st)) { |
