From: Ralf Wildenhues Date: Tue, 26 Jul 2005 03:09:55 +0000 (+0000) Subject: There are some functions without ANSI prototypes left in mutt-owned sources. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aded3c04c1d866a1e3de364f07e2fad218432e6;p=neomutt There are some functions without ANSI prototypes left in mutt-owned sources. --- diff --git a/mbyte.c b/mbyte.c index 77df1fdd0..ea32a85c7 100644 --- a/mbyte.c +++ b/mbyte.c @@ -465,7 +465,7 @@ size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps) #endif /* !HAVE_WC_FUNCS */ -wchar_t replacement_char () +wchar_t replacement_char (void) { return Charset_is_utf8 ? 0xfffd : '?'; } diff --git a/mutt_socket.c b/mutt_socket.c index 3919ccd9a..e88e86e22 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -48,7 +48,7 @@ static CONNECTION *Connections = NULL; /* 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) @@ -349,7 +349,7 @@ static int socket_connect (int fd, struct sockaddr* sa) } /* socket_new_conn: allocate and initialise a new connection. */ -static CONNECTION* socket_new_conn () +static CONNECTION* socket_new_conn (void) { CONNECTION* conn;