mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
set_loginclass() should be static like the proto says
This commit is contained in:
7
sudo.c
7
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.
|
||||
|
Reference in New Issue
Block a user