diff options
| author | Juanma Barranquero | 2010-07-03 09:44:17 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-03 09:44:17 +0200 |
| commit | 3a35a84c9389928a21056f50160ccd1cfca11b9e (patch) | |
| tree | 92bd1639d1ff3ec28e6e8ac39274936c71cbcbc7 /lib-src | |
| parent | fe0aa8207634fd7189868855688265f6476889fe (diff) | |
| download | emacs-3a35a84c9389928a21056f50160ccd1cfca11b9e.tar.gz 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')
| -rw-r--r-- | lib-src/ChangeLog | 12 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 2 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 6 | ||||
| -rw-r--r-- | lib-src/sorted-doc.c | 3 |
4 files changed, 18 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index f9f43ad41e6..e8bb82f749c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2010-07-03 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | Fix prototype warnings. | ||
| 4 | |||
| 5 | * ebrowse.c (match_qualified_namespace_alias): | ||
| 6 | Pass sym* to find_namespace, not link*. | ||
| 7 | |||
| 8 | * emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET. | ||
| 9 | |||
| 10 | * sorted-doc.c (qsort_compare): New typedef. | ||
| 11 | (main): Use it to cast cmpdoc. | ||
| 12 | |||
| 1 | 2010-07-03 Dan Nicolaescu <dann@ics.uci.edu> | 13 | 2010-07-03 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 14 | ||
| 3 | * update-game-score.c: Convert function definitions to standard C. | 15 | * update-game-score.c: Convert function definitions to standard C. |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 2f122cbc21d..bb3456f84e8 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -2385,7 +2385,7 @@ match_qualified_namespace_alias (void) | |||
| 2385 | { | 2385 | { |
| 2386 | case IDENT: | 2386 | case IDENT: |
| 2387 | tmp = (struct link *) xmalloc (sizeof *cur); | 2387 | tmp = (struct link *) xmalloc (sizeof *cur); |
| 2388 | tmp->sym = find_namespace (yytext, cur); | 2388 | tmp->sym = find_namespace (yytext, cur->sym); |
| 2389 | tmp->next = NULL; | 2389 | tmp->next = NULL; |
| 2390 | if (head) | 2390 | if (head) |
| 2391 | { | 2391 | { |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index d96925d2a3c..cb8a4ebcaf8 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -764,7 +764,7 @@ sock_err_message (char *function_name) | |||
| 764 | - the buffer is full (but this shouldn't happen) | 764 | - the buffer is full (but this shouldn't happen) |
| 765 | Otherwise, we just accumulate it. */ | 765 | Otherwise, we just accumulate it. */ |
| 766 | void | 766 | void |
| 767 | send_to_emacs (int s, char *data) | 767 | send_to_emacs (HSOCKET s, char *data) |
| 768 | { | 768 | { |
| 769 | while (data) | 769 | while (data) |
| 770 | { | 770 | { |
| @@ -801,9 +801,9 @@ send_to_emacs (int s, char *data) | |||
| 801 | any initial -. Change spaces to underscores, too, so that the | 801 | any initial -. Change spaces to underscores, too, so that the |
| 802 | return value never contains a space. | 802 | return value never contains a space. |
| 803 | 803 | ||
| 804 | Does not change the string. Outputs the result to STREAM. */ | 804 | Does not change the string. Outputs the result to S. */ |
| 805 | void | 805 | void |
| 806 | quote_argument (int s, char *str) | 806 | quote_argument (HSOCKET s, char *str) |
| 807 | { | 807 | { |
| 808 | char *copy = (char *) xmalloc (strlen (str) * 2 + 1); | 808 | char *copy = (char *) xmalloc (strlen (str) * 2 + 1); |
| 809 | char *p, *q; | 809 | char *p, *q; |
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) | |||
| 110 | return (*a)->type - (*b)->type; | 110 | return (*a)->type - (*b)->type; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | typedef int (*qsort_compare) (const void *, const void *); | ||
| 113 | 114 | ||
| 114 | enum state | 115 | enum state |
| 115 | { | 116 | { |
| @@ -227,7 +228,7 @@ main (void) | |||
| 227 | 228 | ||
| 228 | /* sort the array by name; within each name, by type */ | 229 | /* sort the array by name; within each name, by type */ |
| 229 | 230 | ||
| 230 | qsort ((char*)array, cnt, sizeof (DOCSTR*), cmpdoc); | 231 | qsort ((char*)array, cnt, sizeof (DOCSTR*), (qsort_compare)cmpdoc); |
| 231 | 232 | ||
| 232 | /* write the output header */ | 233 | /* write the output header */ |
| 233 | 234 | ||