Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 23f827ea94284656972652f61f2c6aad96092cc8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Thu, 20 Jul 2017 23:00:29 -0400 |
| 4 | Subject: [PATCH] fix compile failure against musl C library |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 9 | --- |
| 10 | lib/rpm.c | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/lib/rpm.c b/lib/rpm.c |
| 14 | index 920e145..58140bf 100644 |
| 15 | --- a/lib/rpm.c |
| 16 | +++ b/lib/rpm.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | @@ -191,7 +191,7 @@ sr_rpm_package_sort(struct sr_rpm_package *packages) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | } |
| 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 | -- |
| 27 | 2.8.1 |
| 28 | |