From: nekral-guest Date: Sun, 25 May 2008 23:38:05 +0000 (+0000) Subject: * libmisc/pam_pass.c (do_pam_passwd): The silent and X-Git-Tag: 4.1.3~482 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fef9f5178a023e9c81904181a1e7f4ade328539;p=shadow * libmisc/pam_pass.c (do_pam_passwd): The silent and change_expired are no booleans instead of int. * libmisc/pam_pass.c: The return value of pam_end is not checked on purpose. --- diff --git a/ChangeLog b/ChangeLog index 6bce5ff2..b09a1926 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-26 Nicolas François + + * libmisc/pam_pass.c (do_pam_passwd): The silent and + change_expired are no booleans instead of int. + * libmisc/pam_pass.c: The return value of pam_end is not checked + on purpose. + 2008-05-26 Nicolas François * libmisc/getlong.c: Avoid implicit conversion of pointers / chars diff --git a/libmisc/pam_pass.c b/libmisc/pam_pass.c index 2d2115c3..10b28a23 100644 --- a/libmisc/pam_pass.c +++ b/libmisc/pam_pass.c @@ -50,7 +50,7 @@ #include "pam_defs.h" #include "prototypes.h" -void do_pam_passwd (const char *user, int silent, int change_expired) +void do_pam_passwd (const char *user, bool silent, bool change_expired) { pam_handle_t *pamh = NULL; int flags = 0, ret; @@ -76,7 +76,7 @@ void do_pam_passwd (const char *user, int silent, int change_expired) } fputs (_("passwd: password updated successfully\n"), stderr); - pam_end (pamh, PAM_SUCCESS); + (void) pam_end (pamh, PAM_SUCCESS); } #else /* !USE_PAM */ extern int errno; /* warning: ANSI C forbids an empty source file */