From ef95bb7ed1395ee60212ad615eca3d7a1c2d013d Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 13 Dec 2023 15:46:53 +0100 Subject: [PATCH] src/su.c: Fix type of variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit su.c:678:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘const void *’ [-Wformat=] su.c:681:44: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘const void *’ [-Wformat=] su.c:683:46: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘const void *’ [-Wformat=] Reported-by: Christian Göttsche Signed-off-by: Alejandro Colomar --- src/su.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/su.c b/src/su.c index 362841fb8..976334eba 100644 --- a/src/su.c +++ b/src/su.c @@ -643,8 +643,8 @@ static /*@only@*/struct passwd * check_perms (void) static /*@only@*/struct passwd * do_check_perms (void) { #ifdef USE_PAM - const void *tmp_name; - int ret; + int ret; + const char *tmp_name; #endif /* !USE_PAM */ /* * The password file entries for the user is gotten and the account -- 2.47.2