From: Alejandro Colomar Date: Fri, 21 Feb 2025 06:39:15 +0000 (+0100) Subject: lib/obscure.c: Remove unused parameter $1 of palindrome() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0798100e9e09816c4e0378e17b4eb42a51111358;p=thirdparty%2Fshadow.git lib/obscure.c: Remove unused parameter $1 of palindrome() Signed-off-by: Alejandro Colomar --- diff --git a/lib/obscure.c b/lib/obscure.c index 8e8cf09b8..2ece23308 100644 --- a/lib/obscure.c +++ b/lib/obscure.c @@ -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");