diff options
Diffstat (limited to 'lib-src/sorted-doc.c')
-rw-r--r-- | lib-src/sorted-doc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c index 828e8db9a0b..2c138dc348c 100644 --- a/lib-src/sorted-doc.c +++ b/lib-src/sorted-doc.c @@ -110,6 +110,7 @@ cmpdoc (DOCSTR **a, DOCSTR **b) return (*a)->type - (*b)->type; } +typedef int (*qsort_compare) (const void *, const void *); enum state { @@ -227,7 +228,7 @@ main (void) /* sort the array by name; within each name, by type */ - qsort ((char*)array, cnt, sizeof (DOCSTR*), cmpdoc); + qsort ((char*)array, cnt, sizeof (DOCSTR*), (qsort_compare)cmpdoc); /* write the output header */ |