mirror of
git://git.musl-libc.org/musl
synced 2025-01-11 09:09:45 +00:00
fix constraint violation in qsort wrapper around qsort_r
function pointer types do not implicitly convert to void *. a cast is required here.
This commit is contained in:
parent
6e9d2370c7
commit
dcb31f6b45
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user