aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-03 23:05:43 -0700
committerDan Nicolaescu2010-07-03 23:05:43 -0700
commitb8463cbfbe2c5183cf40772df2746e58b787ddeb (patch)
treed3e71f09d6fd870ffd7a478a17f86384f4872fe2
parentb782e2d7f36a742156e5b13d43efdcf620356bc0 (diff)
downloademacs-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/ChangeLog7
-rw-r--r--lib-src/fakemail.c4
-rw-r--r--lib-src/test-distrib.c9
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 @@
12010-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
12010-07-03 Andreas Schwab <schwab@linux-m68k.org> 82010-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;
100struct stream_record 100struct 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};
106typedef struct stream_record *stream_list; 106typedef struct stream_record *stream_list;
@@ -417,7 +417,7 @@ close_the_streams (void)
417} 417}
418 418
419void 419void
420add_a_stream (FILE *the_stream, int (*closing_action) (/* ??? */)) 420add_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. */
54int 54int
55cool_read (fd, buf, size) 55cool_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
72int 69int
73main (argc, argv) 70main (int argc, char **argv)
74 int argc;
75 char **argv;
76{ 71{
77 int fd; 72 int fd;
78 73