From: Alejandro Colomar Date: Wed, 13 Dec 2023 14:46:53 +0000 (+0100) Subject: src/su.c: Fix type of variable X-Git-Tag: 4.15.0-rc1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef95bb7ed1395ee60212ad615eca3d7a1c2d013d;p=thirdparty%2Fshadow.git src/su.c: Fix type of variable 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 --- 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