summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_net_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/inet_net_pton.c')
-rw-r--r--src/lib/libc/net/inet_net_pton.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/libc/net/inet_net_pton.c b/src/lib/libc/net/inet_net_pton.c
index 3c72efac6b..e544ca7e28 100644
--- a/src/lib/libc/net/inet_net_pton.c
+++ b/src/lib/libc/net/inet_net_pton.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_net_pton.c,v 1.3 2003/04/25 19:40:25 henning Exp $ */ 1/* $OpenBSD: inet_net_pton.c,v 1.4 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
22static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $"; 22static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $";
23#else 23#else
24static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.3 2003/04/25 19:40:25 henning Exp $"; 24static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.4 2005/03/25 13:24:12 otto Exp $";
25#endif 25#endif
26#endif 26#endif
27 27
@@ -53,11 +53,7 @@ static int inet_net_pton_ipv4(const char *, u_char *, size_t);
53 * Paul Vixie (ISC), June 1996 53 * Paul Vixie (ISC), June 1996
54 */ 54 */
55int 55int
56inet_net_pton(af, src, dst, size) 56inet_net_pton(int af, const char *src, void *dst, size_t size)
57 int af;
58 const char *src;
59 void *dst;
60 size_t size;
61{ 57{
62 switch (af) { 58 switch (af) {
63 case AF_INET: 59 case AF_INET:
@@ -85,10 +81,7 @@ inet_net_pton(af, src, dst, size)
85 * Paul Vixie (ISC), June 1996 81 * Paul Vixie (ISC), June 1996
86 */ 82 */
87static int 83static int
88inet_net_pton_ipv4(src, dst, size) 84inet_net_pton_ipv4(const char *src, u_char *dst, size_t size)
89 const char *src;
90 u_char *dst;
91 size_t size;
92{ 85{
93 static const char 86 static const char
94 xdigits[] = "0123456789abcdef", 87 xdigits[] = "0123456789abcdef",