From 6870d77acbcc6ec9b1c23d5360cbaecc0197c7a8 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Mon, 7 Dec 2015 13:58:09 +0200 Subject: [PATCH] Fix set_user prototype. --- server/core/gateway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;