]> git.sur5r.net Git - openldap/commitdiff
Remove a bad function pointer cast.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 16 Dec 2002 09:18:20 +0000 (09:18 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 16 Dec 2002 09:18:20 +0000 (09:18 +0000)
libraries/liblunicode/ucdata/ucgendat.c

index ea88d95f01ca4fc66773fed5c06a6eddc3f23a3b..f16d0ec7e8b72f26f3eedd26c21d3dc09eead0f2 100644 (file)
@@ -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