From: Alejandro Colomar Date: Fri, 21 Feb 2025 05:41:48 +0000 (+0100) Subject: lib/copydir.c: Remove unused parameter $2 of copy_hardlink() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d049315a13b02a06e2edaba154a4c030422a16e7;p=thirdparty%2Fshadow.git lib/copydir.c: Remove unused parameter $2 of copy_hardlink() Signed-off-by: Alejandro Colomar --- diff --git a/lib/copydir.c b/lib/copydir.c index 5879f867e..5d91d201e 100644 --- a/lib/copydir.c +++ b/lib/copydir.c @@ -76,7 +76,6 @@ static int copy_symlink (const struct path_info *src, const struct path_info *ds uid_t old_uid, uid_t new_uid, gid_t old_gid, gid_t new_gid); static int copy_hardlink (const struct path_info *dst, - MAYBE_UNUSED bool reset_selinux, struct link_name *lp); static int copy_special (const struct path_info *src, const struct path_info *dst, bool reset_selinux, @@ -445,7 +444,7 @@ static int copy_entry (const struct path_info *src, const struct path_info *dst, */ else if ((lp = check_link (src->full_path, &sb)) != NULL) { - err = copy_hardlink (dst, reset_selinux, lp); + err = copy_hardlink (dst, lp); } /* @@ -620,7 +619,6 @@ static int copy_symlink (const struct path_info *src, const struct path_info *ds * Return 0 on success, -1 on error. */ static int copy_hardlink (const struct path_info *dst, - MAYBE_UNUSED bool reset_selinux, struct link_name *lp) { /* FIXME: selinux, ACL, Extended Attributes needed? */