From fd9f0c0640fd02a26b96b4f9d3cbbffbb6544a84 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 8 Apr 2020 22:25:15 +0200 Subject: Configuration strings are constant. This is merely a const propagation. There was no problem in there. --- sysdep/unix/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdep/unix/main.c') diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 5209b9b3..1d258f4c 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -190,7 +190,7 @@ sysdep_commit(struct config *new, struct config *old UNUSED) } static int -unix_read_config(struct config **cp, char *name) +unix_read_config(struct config **cp, const char *name) { struct config *conf = config_alloc(name); int ret; @@ -240,7 +240,7 @@ async_config(void) } static struct config * -cmd_read_config(char *name) +cmd_read_config(const char *name) { struct config *conf; @@ -262,7 +262,7 @@ cmd_read_config(char *name) } void -cmd_check_config(char *name) +cmd_check_config(const char *name) { struct config *conf = cmd_read_config(name); if (!conf) @@ -303,7 +303,7 @@ cmd_reconfig_undo_notify(void) } void -cmd_reconfig(char *name, int type, uint timeout) +cmd_reconfig(const char *name, int type, uint timeout) { if (cli_access_restricted()) return; -- cgit v1.2.3