From: Alejandro Colomar Date: Thu, 20 Feb 2025 16:46:23 +0000 (+0100) Subject: src/gpasswd.c: Remove unused parameter $1 of check_perms() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bbf8b33fe95ba9fbd5f6a3ae8e39a4101d52496;p=thirdparty%2Fshadow.git src/gpasswd.c: Remove unused parameter $1 of check_perms() Fixes: 53e1eb404541 (2024-07-01; "src/: Remove dead code") Signed-off-by: Alejandro Colomar --- diff --git a/src/gpasswd.c b/src/gpasswd.c index 42ac0ff39..6dec40d66 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -99,12 +99,12 @@ static void open_files (void); static void close_files (struct option_flags *flags); #ifdef SHADOWGRP static void get_group (struct group *gr, struct sgrp *sg, struct option_flags *flags); -static void check_perms (const struct group *gr, const struct sgrp *sg); +static void check_perms(const struct sgrp *sg); static void update_group (struct group *gr, struct sgrp *sg); static void change_passwd (struct group *gr, struct sgrp *sg); #else static void get_group (struct group *gr, struct option_flags *flags); -static void check_perms (const struct group *gr); +static void check_perms(void); static void update_group (struct group *gr); static void change_passwd (struct group *gr); #endif @@ -642,9 +642,9 @@ static void close_files (struct option_flags *flags) * It only returns if the user is allowed. */ #ifdef SHADOWGRP -static void check_perms (const struct group *gr, const struct sgrp *sg) +static void check_perms (const struct sgrp *sg) #else -static void check_perms (const struct group *gr) +static void check_perms (void) #endif { /* @@ -954,9 +954,9 @@ int main (int argc, char **argv) * Check if the user is allowed to change the password of this group. */ #ifdef SHADOWGRP - check_perms (&grent, &sgent); + check_perms(&sgent); #else - check_perms (&grent); + check_perms(); #endif /*