<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Use ANSI prototypes in mbyte.c, mutt_socket.c



There are some functions without ANSI prototypes left in mutt-owned
sources.

Regards,
Ralf

Index: mbyte.c
===================================================================
RCS file: /home/roessler/cvs/mutt/mbyte.c,v
retrieving revision 3.2
diff -u -r3.2 mbyte.c
--- mbyte.c     12 Nov 2002 08:35:34 -0000      3.2
+++ mbyte.c     7 Nov 2004 16:50:40 -0000
@@ -461,7 +461,7 @@
 
 #endif /* !HAVE_WC_FUNCS */
 
-wchar_t replacement_char ()
+wchar_t replacement_char (void)
 {
   return Charset_is_utf8 ? 0xfffd : '?';
 }
Index: mutt_socket.c
===================================================================
RCS file: /home/roessler/cvs/mutt/mutt_socket.c,v
retrieving revision 3.5
diff -u -r3.5 mutt_socket.c
--- mutt_socket.c       12 Nov 2003 13:49:32 -0000      3.5
+++ mutt_socket.c       7 Nov 2004 16:50:40 -0000
@@ -44,7 +44,7 @@
 /* forward declarations */
 static int socket_preconnect (void);
 static int socket_connect (int fd, struct sockaddr* sa);
-static CONNECTION* socket_new_conn ();
+static CONNECTION* socket_new_conn (void);
 
 /* Wrappers */
 int mutt_socket_open (CONNECTION* conn) 
@@ -339,7 +339,7 @@
 }
 
 /* socket_new_conn: allocate and initialise a new connection. */
-static CONNECTION* socket_new_conn ()
+static CONNECTION* socket_new_conn (void)
 {
   CONNECTION* conn;