]> granicus.if.org Git - sudo/commitdiff
set_loginclass() should be static like the proto says
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Mar 2000 00:16:41 +0000 (00:16 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Mar 2000 00:16:41 +0000 (00:16 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 2c340ffc4d961d56241d290076c697980315ade6..f8061dafd8fdec9122d9e061682a8965815787f9 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -1080,7 +1080,7 @@ initial_setup()
 }
 
 #ifdef HAVE_LOGINCAP
-int
+static int
 set_loginclass(pw)
     struct passwd *pw;
 {
@@ -1117,12 +1117,13 @@ set_loginclass(pw)
     return(1);
 }
 #else
-int set_loginclass(pw)
+static int
+set_loginclass(pw)
     struct passwd *pw;
 {
     return(0);
 }
-#endif
+#endif /* HAVE_LOGINCAP */
 
 /*
  * Look up the fully qualified domain name and set user_host and user_shost.