[PATCH v7 04/16] inet_ntop: fix a couple of old-style decls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Erik Faye-Lund
Date: Wednesday, November 3, 2010 - 6:35 pm

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
---
 compat/inet_ntop.c |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/compat/inet_ntop.c b/compat/inet_ntop.c
index e5b46a0..ea249c6 100644
--- a/compat/inet_ntop.c
+++ b/compat/inet_ntop.c
@@ -50,10 +50,7 @@
  *	Paul Vixie, 1996.
  */
 static const char *
-inet_ntop4(src, dst, size)
-	const u_char *src;
-	char *dst;
-	size_t size;
+inet_ntop4(const u_char *src, char *dst, size_t size)
 {
 	static const char fmt[] = "%u.%u.%u.%u";
 	char tmp[sizeof "255.255.255.255"];
@@ -78,10 +75,7 @@ inet_ntop4(src, dst, size)
  *	Paul Vixie, 1996.
  */
 static const char *
-inet_ntop6(src, dst, size)
-	const u_char *src;
-	char *dst;
-	size_t size;
+inet_ntop6(const u_char *src, char *dst, size_t size)
 {
 	/*
 	 * Note that int32_t and int16_t need only be "at least" large enough
@@ -178,11 +172,7 @@ inet_ntop6(src, dst, size)
  *	Paul Vixie, 1996.
  */
 const char *
-inet_ntop(af, src, dst, size)
-	int af;
-	const void *src;
-	char *dst;
-	size_t size;
+inet_ntop(int af, const void *src, char *dst, size_t size)
 {
 	switch (af) {
 	case AF_INET:
-- 
1.7.3.2.162.g09d37

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v7 00/16] daemon-win32, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 01/16] mingw: add network-wrappers for daemon, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 02/16] mingw: implement syslog, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 04/16] inet_ntop: fix a couple of old-style decls, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 05/16] mingw: use real pid, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 07/16] mingw: add kill emulation, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 12/16] mingw: import poll-emulation from gnulib, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 13/16] mingw: use poll-emulation from gnulib, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH v7 14/16] daemon: use socklen_t, Erik Faye-Lund, (Wed Nov 3, 6:35 pm)
[PATCH] daemon: support &lt;directory&gt; arguments again, Jonathan Nieder, (Mon Jan 3, 9:04 pm)