From: Todd C. Miller Date: Tue, 15 Jan 2008 14:23:58 +0000 (+0000) Subject: Make set_runaspw static void X-Git-Tag: SUDO_1_7_0~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f05a4ff6f720417170cf434cc44905752b421e9;p=sudo Make set_runaspw static void --- diff --git a/sudo.c b/sudo.c index 48e296b3a..61a397a73 100644 --- a/sudo.c +++ b/sudo.c @@ -112,6 +112,7 @@ static void initial_setup __P((void)); static void set_loginclass __P((struct passwd *)); static void set_project __P((struct passwd *)); static void set_runasgr __P((char *)); +static void set_runaspw __P((char *)); static void usage __P((int)) __attribute__((__noreturn__)); static void usage_excl __P((int)) @@ -1287,7 +1288,7 @@ set_fqdn() * Get passwd entry for the user we are going to run commands as. * By default, this is "root". Updates runas_pw as a side effect. */ -int +static void set_runaspw(user) char *user; { @@ -1298,7 +1299,6 @@ set_runaspw(user) if ((runas_pw = sudo_getpwnam(user)) == NULL) log_error(NO_MAIL|MSG_ONLY, "unknown user: %s", user); } - return(TRUE); } /* diff --git a/sudo.h b/sudo.h index 507d8e469..b0967bc66 100644 --- a/sudo.h +++ b/sudo.h @@ -269,7 +269,6 @@ int lock_file __P((int, int)); int touch __P((int, char *, struct timespec *)); int user_is_exempt __P((void)); void set_fqdn __P((void)); -int set_runaspw __P((char *)); char *sudo_getepw __P((const struct passwd *)); int pam_prep_user __P((struct passwd *)); void zero_bytes __P((volatile void *, size_t));