diff options
| author | Robert Drehmel <robert@FreeBSD.org> | 2002-08-14 20:40:35 +0000 |
|---|---|---|
| committer | Robert Drehmel <robert@FreeBSD.org> | 2002-08-14 20:40:35 +0000 |
| commit | b7dbaf7b46e3801e05050872619180ac60c7126a (patch) | |
| tree | f8ad2c443a1f3613a98bf4e10404aa3616e72d33 /lib/libc/net/inet_pton.c | |
| parent | 0054a46d1da472a8c044dcb4449842b9ae7f44c2 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/inet_pton.c')
| -rw-r--r-- | lib/libc/net/inet_pton.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/net/inet_pton.c b/lib/libc/net/inet_pton.c index 05bb1f4b257c..b29e3e231aa9 100644 --- a/lib/libc/net/inet_pton.c +++ b/lib/libc/net/inet_pton.c @@ -48,10 +48,7 @@ static int inet_pton6(const char *src, u_char *dst); * Paul Vixie, 1996. */ int -inet_pton(af, src, dst) - int af; - const char *src; - void *dst; +inet_pton(int af, const char *__restrict src, void *__restrict dst) { switch (af) { case AF_INET: @@ -76,9 +73,7 @@ inet_pton(af, src, dst) * Paul Vixie, 1996. */ static int -inet_pton4(src, dst) - const char *src; - u_char *dst; +inet_pton4(const char *src, u_char *dst) { static const char digits[] = "0123456789"; int saw_digit, octets, ch; @@ -130,9 +125,7 @@ inet_pton4(src, dst) * Paul Vixie, 1996. */ static int -inet_pton6(src, dst) - const char *src; - u_char *dst; +inet_pton6(const char *src, u_char *dst) { static const char xdigits_l[] = "0123456789abcdef", xdigits_u[] = "0123456789ABCDEF"; |
