diff options
author | ume <ume@FreeBSD.org> | 2001-03-23 18:59:31 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-03-23 18:59:31 +0000 |
commit | aabe84d0cbca8d7eed5bd5b81cb33f80bca39a55 (patch) | |
tree | 700ba2e4a6b16a6e442280ce6bb1cb2946d327c6 /lib/libc/net/inet_addr.c | |
parent | af0ef4a0618c8bc04852f5517a94e7bb9cf23a79 (diff) | |
download | FreeBSD-src-aabe84d0cbca8d7eed5bd5b81cb33f80bca39a55.zip FreeBSD-src-aabe84d0cbca8d7eed5bd5b81cb33f80bca39a55.tar.gz |
IPv4 address is not unsigned int. This change introduces in_addr_t.
PR: 9982
Adviced by: des
Reviewed by: -alpha and -net (no objection)
Obtained from: OpenBSD
Diffstat (limited to 'lib/libc/net/inet_addr.c')
-rw-r--r-- | lib/libc/net/inet_addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/inet_addr.c b/lib/libc/net/inet_addr.c index 312c39b..bff7af8 100644 --- a/lib/libc/net/inet_addr.c +++ b/lib/libc/net/inet_addr.c @@ -72,7 +72,7 @@ static char rcsid[] = "$FreeBSD$"; * ASCII internet address interpretation routine. * The value returned is in network order. */ -u_long /* XXX should be struct in_addr :( */ +in_addr_t /* XXX should be struct in_addr :( */ inet_addr(cp) register const char *cp; { @@ -96,7 +96,7 @@ inet_aton(cp, addr) struct in_addr *addr; { u_long parts[4]; - u_long val; + in_addr_t val; char *c; char *endptr; int gotend, n; |