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.3 | |
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.3')
-rw-r--r-- | lib/libc/net/inet.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 3159fef..270f3dc 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -55,9 +55,9 @@ .Fd #include <arpa/inet.h> .Ft int .Fn inet_aton "const char *cp" "struct in_addr *pin" -.Ft unsigned long +.Ft in_addr_t .Fn inet_addr "const char *cp" -.Ft unsigned long +.Ft in_addr_t .Fn inet_network "const char *cp" .Ft char * .Fn inet_ntoa "struct in_addr in" @@ -66,10 +66,10 @@ .Ft int .Fn inet_pton "int af" "const char *src" "void *dst" .Ft struct in_addr -.Fn inet_makeaddr "unsigned long net" "unsigned long lna" -.Ft unsigned long +.Fn inet_makeaddr "in_addr_t net" "in_addr_t lna" +.Ft in_addr_t .Fn inet_lnaof "struct in_addr in" -.Ft unsigned long +.Ft in_addr_t .Fn inet_netof "struct in_addr in" .Sh DESCRIPTION The routines |