blob: b6c32c4bd58a5515b9a034fa2a675043858ed745 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 23f827ea94284656972652f61f2c6aad96092cc8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 20 Jul 2017 23:00:29 -0400
4Subject: [PATCH] fix compile failure against musl C library
5
6Upstream-Status: Pending
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 lib/rpm.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/lib/rpm.c b/lib/rpm.c
14index 920e145..58140bf 100644
15--- a/lib/rpm.c
16+++ b/lib/rpm.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017@@ -191,7 +191,7 @@ sr_rpm_package_sort(struct sr_rpm_package *packages)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018 }
19
20 /* Sort the array. */
21- qsort(array, count, sizeof(struct sr_rpm_package*), (comparison_fn_t)cmp_nevra_qsort_wrapper);
22+ qsort(array, count, sizeof(struct sr_rpm_package*), cmp_nevra_qsort_wrapper);
23
24 /* Create a linked list from the sorted array. */
25 for (size_t loop = 0; loop < count; ++loop)
26--
272.8.1
28