Signed-off-by: Alejandro Colomar <alx@kernel.org>
/* pwdcheck.c */
#ifndef USE_PAM
-extern void passwd_check (const char *, const char *, const char *);
+extern void passwd_check(const char *, const char *);
#endif
/* pwd_init.c */
#include "pwauth.h"
#include "shadowlog.h"
-void passwd_check (const char *user, const char *passwd, MAYBE_UNUSED const char *progname)
+void
+passwd_check(const char *user, const char *passwd)
{
struct spwd *sp;
* --marekm
*/
if (!amroot && getdef_bool ("CHFN_AUTH")) {
- passwd_check (pw->pw_name, pw->pw_passwd, Prog);
+ passwd_check(pw->pw_name, pw->pw_passwd);
}
#else /* !USE_PAM */
* chfn/chsh. --marekm
*/
if (!amroot && getdef_bool ("CHSH_AUTH")) {
- passwd_check (pw->pw_name, pw->pw_passwd, Prog);
+ passwd_check(pw->pw_name, pw->pw_passwd);
}
#else /* !USE_PAM */