]> git.eshelyaron.com Git - emacs.git/commitdiff
* lib-src/fakemail.c (action): Convert function definitions to standard C.
authorDan Nicolaescu <dann@ics.uci.edu>
Sun, 4 Jul 2010 06:05:43 +0000 (23:05 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Sun, 4 Jul 2010 06:05:43 +0000 (23:05 -0700)
(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.

lib-src/ChangeLog
lib-src/fakemail.c
lib-src/test-distrib.c

index e80ca8a4cc232e45fd8585af057d2e8213418930..8afa8e2b54be3a700ddf78b801f7b54034e31b50 100644 (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.
index ec5abb71aebdc3e0b6584444b6e08eb477213838..f4d978b7d11e8013b53bb9af5867304d96d1bc4b 100644 (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 ();
index a6c7c187f8adc17583edf1869d106911c1f89aec..880bd11588256960baa4b4df39eb5c2b2a0342d0 100644 (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;