changeset 109125:12b02558bf51

* lib-src/fakemail.c (action): Convert function definitions to standard C. (add_a_stream): * lib-src/test-distrib.c (cool_read): (main): Likewise.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 03 Jul 2010 23:05:43 -0700
parents 5cc91198ffb2
children aec1143e8d85
files lib-src/ChangeLog lib-src/fakemail.c lib-src/test-distrib.c
diffstat 3 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Sat Jul 03 22:57:11 2010 -0700
+++ b/lib-src/ChangeLog	Sat Jul 03 23:05:43 2010 -0700
@@ -1,3 +1,10 @@
+2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* fakemail.c (action): Convert function definitions to standard C.
+	(add_a_stream):
+	* test-distrib.c (cool_read):
+	(main): Likewise.
+
 2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>
 
 	* sorted-doc.c (cmpdoc): Fix signature.
--- a/lib-src/fakemail.c	Sat Jul 03 22:57:11 2010 -0700
+++ b/lib-src/fakemail.c	Sat Jul 03 23:05:43 2010 -0700
@@ -100,7 +100,7 @@
 struct stream_record
 {
   FILE *handle;
-  int (*action)();
+  int (*action)(FILE *);
   struct stream_record *rest_streams;
 };
 typedef struct stream_record *stream_list;
@@ -417,7 +417,7 @@
 }
 
 void
-add_a_stream (FILE *the_stream, int (*closing_action) (/* ??? */))
+add_a_stream (FILE *the_stream, int (*closing_action) (FILE *))
 {
   stream_list old = the_streams;
   the_streams = new_stream ();
--- a/lib-src/test-distrib.c	Sat Jul 03 22:57:11 2010 -0700
+++ b/lib-src/test-distrib.c	Sat Jul 03 23:05:43 2010 -0700
@@ -52,10 +52,7 @@
 
 /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof.  */
 int
-cool_read (fd, buf, size)
-     int fd;
-     char *buf;
-     int size;
+cool_read (int fd, char *buf, int size)
 {
   int num, sofar = 0;
 
@@ -70,9 +67,7 @@
 }
 
 int
-main (argc, argv)
-     int argc;
-     char **argv;
+main (int argc, char **argv)
 {
   int fd;