# HG changeset patch # User Dan Nicolaescu # Date 1278223543 25200 # Node ID 12b02558bf510fc36f52403cc7b47f6009822814 # Parent 5cc91198ffb2d6d92812986facf63d0bf12fb1aa * lib-src/fakemail.c (action): Convert function definitions to standard C. (add_a_stream): * lib-src/test-distrib.c (cool_read): (main): Likewise. diff -r 5cc91198ffb2 -r 12b02558bf51 lib-src/ChangeLog --- 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 + + * fakemail.c (action): Convert function definitions to standard C. + (add_a_stream): + * test-distrib.c (cool_read): + (main): Likewise. + 2010-07-03 Andreas Schwab * sorted-doc.c (cmpdoc): Fix signature. diff -r 5cc91198ffb2 -r 12b02558bf51 lib-src/fakemail.c --- 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 (); diff -r 5cc91198ffb2 -r 12b02558bf51 lib-src/test-distrib.c --- 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;