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:
7
sudo.c
7
sudo.c
@@ -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.
|
||||||
|
Reference in New Issue
Block a user