diff lib-src/sorted-doc.c @ 109115:71150397fb59

Fix prototypes. * src/cm.c (evalcost): Fix arg type. * src/cm.h (evalcost): Fix prototype. * src/lisp.h (memory_warnings): Fix prototype. * lib-src/ebrowse.c (match_qualified_namespace_alias): Pass sym* to find_namespace, not link*. * lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET. * lib-src/sorted-doc.c (qsort_compare): New typedef. (main): Use it to cast cmpdoc.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 03 Jul 2010 09:44:17 +0200
parents 52b76722152a
children 9983eb21a9c9
line wrap: on
line diff
--- a/lib-src/sorted-doc.c	Fri Jul 02 23:16:11 2010 -0400
+++ b/lib-src/sorted-doc.c	Sat Jul 03 09:44:17 2010 +0200
@@ -110,6 +110,7 @@
   return (*a)->type - (*b)->type;
 }
 
+typedef int (*qsort_compare) (const void *, const void *);
 
 enum state
 {
@@ -227,7 +228,7 @@
 
     /* 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 */