1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

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

(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.
This commit is contained in:
Dan Nicolaescu 2010-07-03 23:05:43 -07:00
parent b782e2d7f3
commit b8463cbfbe
3 changed files with 11 additions and 9 deletions

View file

@ -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.

View file

@ -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 ();

View file

@ -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;