diff options
| author | Dan Nicolaescu | 2010-07-03 23:05:43 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-03 23:05:43 -0700 |
| commit | b8463cbfbe2c5183cf40772df2746e58b787ddeb (patch) | |
| tree | d3e71f09d6fd870ffd7a478a17f86384f4872fe2 | |
| parent | b782e2d7f36a742156e5b13d43efdcf620356bc0 (diff) | |
| download | emacs-b8463cbfbe2c5183cf40772df2746e58b787ddeb.tar.gz emacs-b8463cbfbe2c5183cf40772df2746e58b787ddeb.zip | |
* lib-src/fakemail.c (action): Convert function definitions to standard C.
(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.
| -rw-r--r-- | lib-src/ChangeLog | 7 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 4 | ||||
| -rw-r--r-- | lib-src/test-distrib.c | 9 |
3 files changed, 11 insertions, 9 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e80ca8a4cc2..8afa8e2b54b 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * fakemail.c (action): Convert function definitions to standard C. | ||
| 4 | (add_a_stream): | ||
| 5 | * test-distrib.c (cool_read): | ||
| 6 | (main): Likewise. | ||
| 7 | |||
| 1 | 2010-07-03 Andreas Schwab <schwab@linux-m68k.org> | 8 | 2010-07-03 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 9 | ||
| 3 | * sorted-doc.c (cmpdoc): Fix signature. | 10 | * sorted-doc.c (cmpdoc): Fix signature. |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index ec5abb71aeb..f4d978b7d11 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -100,7 +100,7 @@ typedef struct header_record *header; | |||
| 100 | struct stream_record | 100 | struct stream_record |
| 101 | { | 101 | { |
| 102 | FILE *handle; | 102 | FILE *handle; |
| 103 | int (*action)(); | 103 | int (*action)(FILE *); |
| 104 | struct stream_record *rest_streams; | 104 | struct stream_record *rest_streams; |
| 105 | }; | 105 | }; |
| 106 | typedef struct stream_record *stream_list; | 106 | typedef struct stream_record *stream_list; |
| @@ -417,7 +417,7 @@ close_the_streams (void) | |||
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | void | 419 | void |
| 420 | add_a_stream (FILE *the_stream, int (*closing_action) (/* ??? */)) | 420 | add_a_stream (FILE *the_stream, int (*closing_action) (FILE *)) |
| 421 | { | 421 | { |
| 422 | stream_list old = the_streams; | 422 | stream_list old = the_streams; |
| 423 | the_streams = new_stream (); | 423 | the_streams = new_stream (); |
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index a6c7c187f8a..880bd115882 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -52,10 +52,7 @@ char buf[300]; | |||
| 52 | 52 | ||
| 53 | /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ | 53 | /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ |
| 54 | int | 54 | int |
| 55 | cool_read (fd, buf, size) | 55 | cool_read (int fd, char *buf, int size) |
| 56 | int fd; | ||
| 57 | char *buf; | ||
| 58 | int size; | ||
| 59 | { | 56 | { |
| 60 | int num, sofar = 0; | 57 | int num, sofar = 0; |
| 61 | 58 | ||
| @@ -70,9 +67,7 @@ cool_read (fd, buf, size) | |||
| 70 | } | 67 | } |
| 71 | 68 | ||
| 72 | int | 69 | int |
| 73 | main (argc, argv) | 70 | main (int argc, char **argv) |
| 74 | int argc; | ||
| 75 | char **argv; | ||
| 76 | { | 71 | { |
| 77 | int fd; | 72 | int fd; |
| 78 | 73 | ||