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/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
#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;
}
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 */