summaryrefslogtreecommitdiff
path: root/resolv/inet_ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/inet_ntop.c')
-rw-r--r--resolv/inet_ntop.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/resolv/inet_ntop.c b/resolv/inet_ntop.c
index 6e89f2d058..32338c58b0 100644
--- a/resolv/inet_ntop.c
+++ b/resolv/inet_ntop.c
@@ -56,11 +56,7 @@ static const char *inet_ntop6 (const u_char *src, char *dst, socklen_t size)
* Paul Vixie, 1996.
*/
const char *
-inet_ntop(af, src, dst, size)
- int af;
- const void *src;
- char *dst;
- socklen_t size;
+inet_ntop (int af, const void *src, char *dst, socklen_t size)
{
switch (af) {
case AF_INET:
@@ -88,10 +84,7 @@ libc_hidden_def (inet_ntop)
*/
static const char *
internal_function
-inet_ntop4(src, dst, size)
- const u_char *src;
- char *dst;
- socklen_t size;
+inet_ntop4 (const u_char *src, char *dst, socklen_t size)
{
static const char fmt[] = "%u.%u.%u.%u";
char tmp[sizeof "255.255.255.255"];
@@ -111,10 +104,7 @@ inet_ntop4(src, dst, size)
*/
static const char *
internal_function
-inet_ntop6(src, dst, size)
- const u_char *src;
- char *dst;
- socklen_t size;
+inet_ntop6 (const u_char *src, char *dst, socklen_t size)
{
/*
* Note that int32_t and int16_t need only be "at least" large enough