]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/, src/: Remove unused parameter $3 of passwd_check()
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Feb 2025 06:45:33 +0000 (07:45 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 6 Nov 2025 11:50:49 +0000 (12:50 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/prototypes.h
lib/pwdcheck.c
src/chfn.c
src/chsh.c

index 5fe2cf94d10b73ea71529f82b693cb12e6e9f53f..cae5180826f7099b37c9bf46aa451f1730827794 100644 (file)
@@ -339,7 +339,7 @@ extern struct spwd *pwd_to_spwd (const struct passwd *);
 
 /* 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 */
index e0ace0546187e0da72643d71ae948a1309014969..cd85aab68e1a70b361b951330c31bbcd44779742 100644 (file)
@@ -20,7 +20,8 @@
 #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;
 
index 582b51e075ce3ee403dfb895887c1105437e2d87..acc21a985de7cb7a7ba5fb8a6ee54d54c3fc5b35 100644 (file)
@@ -347,7 +347,7 @@ static void check_perms (const struct passwd *pw)
         * --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 */
index e87a466d7acfe7c6ec2b4e7aae8af5d0fa83fe2c..bb65a82d614ad6d6f71baaca5765073c2bf35f4f 100644 (file)
@@ -325,7 +325,7 @@ static void check_perms (const struct passwd *pw, struct option_flags *flags)
         * 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 */