gentoo-ebuilds/net-misc/rsync-bpc/files/rsync-bpc-3.1.3.0-fix-qsort-call.patch
Dennis Eisele 8f0ea097eb
net-misc/rsync-bpc: fix several modernc issues and warnings
This commit fixes implicit function declaration errors and other modernc
issues.
It also fixes several warnings about deprecated or wrongly used
headers.
Configuration options added by these fixes are also
adopted by adding some new use flags.

Closes: https://bugs.gentoo.org/900312
Closes: https://bugs.gentoo.org/944357
Closes: https://bugs.gentoo.org/854612

Signed-off-by: Dennis Eisele <kernlpanic@dennis-eisele.de>
Part-of: https://github.com/gentoo/gentoo/pull/42908
Closes: https://github.com/gentoo/gentoo/pull/42908
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-16 04:16:28 +01:00

24 lines
815 B
Diff

From 6466b0b0c537d135cf10fecb598bfd6d40194e37 Mon Sep 17 00:00:00 2001
From: Dennis Eisele <kernlpanic@dennis-eisele.de>
Date: Sun, 6 Jul 2025 17:57:24 +0200
Subject: [PATCH] hlink.c: fix function pointer cast in qsort()
Proposed-by: Charalampos Mitrodimas <charmitro@posteo.net>
---
hlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hlink.c b/hlink.c
index 5a1e342..43ce6ec 100644
--- a/hlink.c
+++ b/hlink.c
@@ -121,7 +121,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count)
int32 gnum, gnum_next;
qsort(ndx_list, ndx_count, sizeof ndx_list[0],
- (int (*)()) hlink_compare_gnum);
+ (int (*)(const void*, const void*)) hlink_compare_gnum);
if ( inc_recurse && prior_hlinks && hlink_nlinks ) {
for (from = 0; from < ndx_count; from++) {