2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 07:45:47 +00:00

set_loginclass() should be static like the proto says

This commit is contained in:
Todd C. Miller
2000-03-24 00:16:41 +00:00
parent 7ffc5a9fae
commit fed49d49eb

7
sudo.c
View File

@@ -1080,7 +1080,7 @@ initial_setup()
} }
#ifdef HAVE_LOGINCAP #ifdef HAVE_LOGINCAP
int static int
set_loginclass(pw) set_loginclass(pw)
struct passwd *pw; struct passwd *pw;
{ {
@@ -1117,12 +1117,13 @@ set_loginclass(pw)
return(1); return(1);
} }
#else #else
int set_loginclass(pw) static int
set_loginclass(pw)
struct passwd *pw; struct passwd *pw;
{ {
return(0); return(0);
} }
#endif #endif /* HAVE_LOGINCAP */
/* /*
* Look up the fully qualified domain name and set user_host and user_shost. * Look up the fully qualified domain name and set user_host and user_shost.