Fix set_user prototype.

This commit is contained in:
Johan Wikman 2015-12-07 13:58:09 +02:00
parent f62ff4c551
commit 6870d77acb

View File

@ -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;