mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Remove a bad function pointer cast.
This commit is contained in:
parent
3dca6b67a5
commit
ae28aa57b2
@ -1147,8 +1147,9 @@ expand_decomp(void)
|
||||
}
|
||||
|
||||
static int
|
||||
cmpcomps(_comp_t *comp1, _comp_t *comp2)
|
||||
cmpcomps(const void *v_comp1, const void *v_comp2)
|
||||
{
|
||||
const _comp_t *comp1 = v_comp1, *comp2 = v_comp2;
|
||||
long diff = comp1->code1 - comp2->code1;
|
||||
|
||||
if (!diff)
|
||||
@ -1212,8 +1213,7 @@ create_comps(void)
|
||||
cu++;
|
||||
}
|
||||
comps_used = cu;
|
||||
qsort(comps, comps_used, sizeof(_comp_t),
|
||||
(int (*)(const void *, const void *)) cmpcomps);
|
||||
qsort(comps, comps_used, sizeof(_comp_t), cmpcomps);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user