From d94602add8ab903776338cdb89cd78fcaab00fe4 Mon Sep 17 00:00:00 2001 From: nekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7> Date: Mon, 17 Mar 2008 23:04:46 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ lib/prototypes.h | 3 +++ src/login.c | 2 -- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13704f93..916f2910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 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); -- 2.40.0