Commit a52a00a3 authored by Andreas Schwab's avatar Andreas Schwab

Fix invalid cast

* sorted-doc.c (cmpdoc): Fix signature.
(qsort_compare): Delete.
(main): Remove cast.
parent 35d99b72
2010-07-03 Andreas Schwab <>
* sorted-doc.c (cmpdoc): Fix signature.
(qsort_compare): Delete.
(main): Remove cast.
2010-07-03 Juanma Barranquero <>
* ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
......@@ -103,15 +103,15 @@ xstrdup (char *str)
/* Comparison function for qsort to call. */
cmpdoc (DOCSTR **a, DOCSTR **b)
cmpdoc (const void *va, const void *vb)
DOCSTR *const *a = va;
DOCSTR *const *b = vb;
register int val = strcmp ((*a)->name, (*b)->name);
if (val) return val;
return (*a)->type - (*b)->type;
typedef int (*qsort_compare) (const void *, const void *);
enum state
......@@ -228,7 +228,7 @@ main (void)
/* sort the array by name; within each name, by type */
qsort ((char*)array, cnt, sizeof (DOCSTR*), (qsort_compare)cmpdoc);
qsort ((char*)array, cnt, sizeof (DOCSTR*), cmpdoc);
/* write the output header */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment