From 66e39884e2670cbddddc0bd1845ede99da2ca86b Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 10 Apr 2009 22:34:29 +0000 Subject: [PATCH] * lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is NOT defined. --- ChangeLog | 5 +++++ lib/prototypes.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3d3cf434..e924dc1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-06 Nicolas François + + * lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is + NOT defined. + 2009-04-06 Nicolas François * src/passwd.c: Replace getnumber() by getlong(). This permits to diff --git a/lib/prototypes.h b/lib/prototypes.h index f4e6a8ae..7a057ebb 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -235,7 +235,7 @@ extern void do_pam_passwd (const char *user, bool silent, bool change_expired); extern bool isttytime (const char *, const char *, time_t); /* pwd2spwd.c */ -#ifdef USE_PAM +#ifndef USE_PAM extern struct spwd *pwd_to_spwd (const struct passwd *); #endif