]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/obscure.c: Remove unused parameter $1 of palindrome()
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Feb 2025 06:39:15 +0000 (07:39 +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/obscure.c

index 8e8cf09b84b1e95c72e98f261f8f9a1a0feae45e..2ece233087f5c15c506293265227d426bb203d31 100644 (file)
@@ -33,7 +33,8 @@
 /*
  * can't be a palindrome - like `R A D A R' or `M A D A M'
  */
-static bool palindrome (MAYBE_UNUSED const char *old, const char *new)
+static bool
+palindrome(const char *new)
 {
        size_t i, j;
 
@@ -94,7 +95,7 @@ static /*@observer@*//*@null@*/const char *password_check (
        oldmono = strtolower(xstrdup(old));
        wrapped = xaprintf("%s%s", oldmono, oldmono);
 
-       if (palindrome (oldmono, newmono)) {
+       if (palindrome(newmono)) {
                msg = _("a palindrome");
        } else if (streq(oldmono, newmono)) {
                msg = _("case changes only");