From ae28aa57b2a815b2beb0c4dbf0aec89d0d2c2e65 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 16 Dec 2002 09:18:20 +0000 Subject: [PATCH] Remove a bad function pointer cast. --- libraries/liblunicode/ucdata/ucgendat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/liblunicode/ucdata/ucgendat.c b/libraries/liblunicode/ucdata/ucgendat.c index ea88d95f01..f16d0ec7e8 100644 --- a/libraries/liblunicode/ucdata/ucgendat.c +++ b/libraries/liblunicode/ucdata/ucgendat.c @@ -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 -- 2.39.5