* 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.
This commit is contained in:
parent
f9ac07f455
commit
6fef9f5178
@ -1,3 +1,10 @@
|
||||
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* 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 <nicolas.francois@centraliens.net>
|
||||
|
||||
* libmisc/getlong.c: Avoid implicit conversion of pointers / chars
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user