* 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:
nekral-guest
2008-05-25 23:38:05 +00:00
parent f9ac07f455
commit 6fef9f5178
2 changed files with 9 additions and 2 deletions

View File

@@ -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 */