@matheusbsbs / matheus-bagliano / commits / bb34c5aabe
Fork 0

inet_ntop: fix a couple of old-style decls

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Erik Faye-Lund committed Nov 4, 2010 at 02:35 UTC bb34c5aabe9f8d86a40d5ab8518fc78602264179
1 file changed +3 -13
compat/inet_ntop.c
+3 -13
@@ -50,10 +50,7 @@
50 * Paul Vixie, 1996.
51 */
52 static const char *
53 -inet_ntop4(src, dst, size)
54 - const u_char *src;
55 - char *dst;
56 - size_t size;
53 +inet_ntop4(const u_char *src, char *dst, size_t size)
54 {
55 static const char fmt[] = "%u.%u.%u.%u";
56 char tmp[sizeof "255.255.255.255"];
@@ -78,10 +75,7 @@ inet_ntop4(src, dst, size)
75 * Paul Vixie, 1996.
76 */
77 static const char *
81 -inet_ntop6(src, dst, size)
82 - const u_char *src;
83 - char *dst;
84 - size_t size;
78 +inet_ntop6(const u_char *src, char *dst, size_t size)
79 {
80 /*
81 * Note that int32_t and int16_t need only be "at least" large enough
@@ -178,11 +172,7 @@ inet_ntop6(src, dst, size)
172 * Paul Vixie, 1996.
173 */
174 const char *
181 -inet_ntop(af, src, dst, size)
182 - int af;
183 - const void *src;
184 - char *dst;
185 - size_t size;
175 +inet_ntop(int af, const void *src, char *dst, size_t size)
176 {
177 switch (af) {
178 case AF_INET: