diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2010-07-03 09:44:17 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2010-07-03 09:44:17 +0200 |
commit | 3a35a84c9389928a21056f50160ccd1cfca11b9e (patch) | |
tree | 92bd1639d1ff3ec28e6e8ac39274936c71cbcbc7 /lib-src/sorted-doc.c | |
parent | fe0aa8207634fd7189868855688265f6476889fe (diff) | |
download | emacs-3a35a84c9389928a21056f50160ccd1cfca11b9e.tar.gz emacs-3a35a84c9389928a21056f50160ccd1cfca11b9e.tar.bz2 emacs-3a35a84c9389928a21056f50160ccd1cfca11b9e.zip |
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.
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 */ |