emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100707: * lib-src/fakemail.c (action


From: Dan Nicolaescu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100707: * lib-src/fakemail.c (action): Convert function definitions to standard C.
Date: Sat, 03 Jul 2010 23:05:43 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100707
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Sat 2010-07-03 23:05:43 -0700
message:
  * lib-src/fakemail.c (action): Convert function definitions to standard C.
  (add_a_stream):
  * lib-src/test-distrib.c (cool_read):
  (main): Likewise.
modified:
  lib-src/ChangeLog
  lib-src/fakemail.c
  lib-src/test-distrib.c
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2010-07-03 12:11:03 +0000
+++ b/lib-src/ChangeLog 2010-07-04 06:05:43 +0000
@@ -1,3 +1,10 @@
+2010-07-04  Dan Nicolaescu  <address@hidden>
+
+       * fakemail.c (action): Convert function definitions to standard C.
+       (add_a_stream):
+       * test-distrib.c (cool_read):
+       (main): Likewise.
+
 2010-07-03  Andreas Schwab  <address@hidden>
 
        * sorted-doc.c (cmpdoc): Fix signature.

=== modified file 'lib-src/fakemail.c'
--- a/lib-src/fakemail.c        2010-07-03 00:50:23 +0000
+++ b/lib-src/fakemail.c        2010-07-04 06:05:43 +0000
@@ -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 ();

=== modified file 'lib-src/test-distrib.c'
--- a/lib-src/test-distrib.c    2010-01-13 08:35:10 +0000
+++ b/lib-src/test-distrib.c    2010-07-04 06:05:43 +0000
@@ -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;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]