diff --git a/server/core/gateway.c b/server/core/gateway.c index 30b3a02c0..d90b7d48f 100644 --- a/server/core/gateway.c +++ b/server/core/gateway.c @@ -210,7 +210,7 @@ static bool resolve_maxscale_conf_fname( char* cnf_file_arg); static char* check_dir_access(char* dirname, bool, bool); -static int set_user(); +static int set_user(const char* user); bool pid_file_exists(); void write_child_exit_code(int fd, int code); /** SSL multi-threading functions and structures */ @@ -2433,7 +2433,7 @@ static int cnf_preparser(void* data, const char* section, const char* name, cons return 1; } -static int set_user(char* user) +static int set_user(const char* user) { errno = 0; struct passwd *pwname;