]> granicus.if.org Git - sudo/commitdiff
Make set_runaspw static void
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2008 14:23:58 +0000 (14:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2008 14:23:58 +0000 (14:23 +0000)
sudo.c
sudo.h

diff --git a/sudo.c b/sudo.c
index 48e296b3a9510ad7cd2a55444f4557965959a5b1..61a397a73cc1b40f06df43abbefa3625283775af 100644 (file)
--- 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 507d8e469fab77fda0f238c7101b40197fea77dd..b0967bc660754907798ab72d22dfd2c4bbc940c1 100644 (file)
--- 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));