From: nekral-guest Date: Mon, 17 Mar 2008 23:04:46 +0000 (+0000) Subject: login_access() is used in src/login.c, and defined in src/login_nopam.c X-Git-Tag: 4.1.1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d94602add8ab903776338cdb89cd78fcaab00fe4;p=shadow 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. --- diff --git a/ChangeLog b/ChangeLog index 13704f93..916f2910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-17 Nicolas François + + * 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 * src/gpasswd.c, src/groupmod.c: Compilation fix. gshadow_locked diff --git a/lib/prototypes.h b/lib/prototypes.h index 6c82f9d9..b116b372 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -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); diff --git a/src/login.c b/src/login.c index 779e1dfa..aa9e5560 100644 --- a/src/login.c +++ b/src/login.c @@ -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);