summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2022-05-06 19:34:48 -0400
committerRich Felker <dalias@aerifal.cx>2022-05-06 19:34:48 -0400
commitdcb31f6b450fdeed4dc364e15cd190e8562ea227 (patch)
tree21f3130a4b99687490188166a014e4d93efb0415
parent6e9d2370c7559af80b32a91f20898f41597e093b (diff)
downloadmusl-dcb31f6b450fdeed4dc364e15cd190e8562ea227.tar.gz
musl-dcb31f6b450fdeed4dc364e15cd190e8562ea227.tar.bz2
musl-dcb31f6b450fdeed4dc364e15cd190e8562ea227.tar.xz
musl-dcb31f6b450fdeed4dc364e15cd190e8562ea227.zip
fix constraint violation in qsort wrapper around qsort_r
function pointer types do not implicitly convert to void *. a cast is required here.
-rw-r--r--src/stdlib/qsort_nr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/qsort_nr.c b/src/stdlib/qsort_nr.c
index efe7ccec..8ffe71d0 100644
--- a/src/stdlib/qsort_nr.c
+++ b/src/stdlib/qsort_nr.c
@@ -10,5 +10,5 @@ static int wrapper_cmp(const void *v1, const void *v2, void *cmp)
void qsort(void *base, size_t nel, size_t width, cmpfun cmp)
{
- __qsort_r(base, nel, width, wrapper_cmp, cmp);
+ __qsort_r(base, nel, width, wrapper_cmp, (void *)cmp);
}