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:
Rich Felker 2022-05-06 19:34:48 -04:00
parent 6e9d2370c7
commit dcb31f6b45

View File

@ -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);
}