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:
nekral-guest 2008-03-17 23:04:46 +00:00
parent e33e2b7d79
commit d94602add8
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);