diff options
Diffstat (limited to 'src/lib/libc/net/inet_net_ntop.c')
| -rw-r--r-- | src/lib/libc/net/inet_net_ntop.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/lib/libc/net/inet_net_ntop.c b/src/lib/libc/net/inet_net_ntop.c index 2b7de0cec3..38978f3ccf 100644 --- a/src/lib/libc/net/inet_net_ntop.c +++ b/src/lib/libc/net/inet_net_ntop.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: inet_net_ntop.c,v 1.4 2004/09/15 19:01:28 deraadt Exp $ */ | 1 | /* $OpenBSD: inet_net_ntop.c,v 1.5 2005/03/25 13:24:12 otto Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1996 by Internet Software Consortium. | 4 | * Copyright (c) 1996 by Internet Software Consortium. |
| @@ -21,7 +21,7 @@ | |||
| 21 | #if 0 | 21 | #if 0 |
| 22 | static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; | 22 | static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; |
| 23 | #else | 23 | #else |
| 24 | static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.4 2004/09/15 19:01:28 deraadt Exp $"; | 24 | static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.5 2005/03/25 13:24:12 otto Exp $"; |
| 25 | #endif | 25 | #endif |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| @@ -48,12 +48,7 @@ static char *inet_net_ntop_ipv4(const u_char *, int, char *, size_t); | |||
| 48 | * Paul Vixie (ISC), July 1996 | 48 | * Paul Vixie (ISC), July 1996 |
| 49 | */ | 49 | */ |
| 50 | char * | 50 | char * |
| 51 | inet_net_ntop(af, src, bits, dst, size) | 51 | inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) |
| 52 | int af; | ||
| 53 | const void *src; | ||
| 54 | int bits; | ||
| 55 | char *dst; | ||
| 56 | size_t size; | ||
| 57 | { | 52 | { |
| 58 | switch (af) { | 53 | switch (af) { |
| 59 | case AF_INET: | 54 | case AF_INET: |
| @@ -78,11 +73,7 @@ inet_net_ntop(af, src, bits, dst, size) | |||
| 78 | * Paul Vixie (ISC), July 1996 | 73 | * Paul Vixie (ISC), July 1996 |
| 79 | */ | 74 | */ |
| 80 | static char * | 75 | static char * |
| 81 | inet_net_ntop_ipv4(src, bits, dst, size) | 76 | inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) |
| 82 | const u_char *src; | ||
| 83 | int bits; | ||
| 84 | char *dst; | ||
| 85 | size_t size; | ||
| 86 | { | 77 | { |
| 87 | char *odst = dst; | 78 | char *odst = dst; |
| 88 | u_int m; | 79 | u_int m; |
