From 0798100e9e09816c4e0378e17b4eb42a51111358 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 21 Feb 2025 07:39:15 +0100 Subject: [PATCH] lib/obscure.c: Remove unused parameter $1 of palindrome() Signed-off-by: Alejandro Colomar --- lib/obscure.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); -- 2.47.3