login_access() is used in src/login.c, and defined in src/login_nopam.c
(which lacks a prototype). Move its prototype from src/login.c to lib/prototypes.h.
This commit is contained in:
parent
e33e2b7d79
commit
d94602add8
@ -1,3 +1,10 @@
|
||||
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* lib/prototypes.h, src/login.c: login_access() is used in
|
||||
src/login.c, and defined in src/login_nopam.c (which lacks a
|
||||
prototype). Move its prototype from src/login.c to
|
||||
lib/prototypes.h.
|
||||
|
||||
2008-03-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/gpasswd.c, src/groupmod.c: Compilation fix. gshadow_locked
|
||||
|
@ -114,6 +114,9 @@ extern void dolastlog (struct lastlog *ll,
|
||||
const char *line,
|
||||
const char *host);
|
||||
|
||||
/* login_nopam.c */
|
||||
extern int login_access (const char *user, const char *from);
|
||||
|
||||
/* loginprompt.c */
|
||||
extern void login_prompt (const char *, char *, int);
|
||||
|
||||
|
@ -128,8 +128,6 @@ static void setup_tty (void);
|
||||
static void check_flags (int, char *const *);
|
||||
|
||||
#ifndef USE_PAM
|
||||
extern int login_access (const char *, const char *);
|
||||
|
||||
static struct faillog faillog;
|
||||
|
||||
static void bad_time_notify (void);
|
||||
|
Loading…
Reference in New Issue
Block a user