diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2010-11-04 04:35:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-05 02:53:50 +0300 |
commit | bb34c5aabe9f8d86a40d5ab8518fc78602264179 (patch) | |
tree | b4d8cb1e2743c254946c45b839ce19b8afd10542 /compat/inet_ntop.c | |
parent | da523cc597b1be7fe61ee870cf93b142e70fab7f (diff) |
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>
Diffstat (limited to 'compat/inet_ntop.c')
-rw-r--r-- | 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 e5b46a0f21..ea249c6ac6 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: |