Commit b8463cbf authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

* lib-src/fakemail.c (action): Convert function definitions to standard C.

(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.
parent b782e2d7
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.
......
......@@ -100,7 +100,7 @@ typedef struct header_record *header;
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 @@ close_the_streams (void)
}
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 ();
......
......@@ -52,10 +52,7 @@ char buf[300];
/* 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 @@ cool_read (fd, buf, size)
}
int
main (argc, argv)
int argc;
char **argv;
main (int argc, char **argv)
{
int fd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment