summaryrefslogtreecommitdiffstats
path: root/include/arpa
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-03-23 18:59:31 +0000
committerume <ume@FreeBSD.org>2001-03-23 18:59:31 +0000
commitaabe84d0cbca8d7eed5bd5b81cb33f80bca39a55 (patch)
tree700ba2e4a6b16a6e442280ce6bb1cb2946d327c6 /include/arpa
parentaf0ef4a0618c8bc04852f5517a94e7bb9cf23a79 (diff)
downloadFreeBSD-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 'include/arpa')
-rw-r--r--include/arpa/inet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index e28b739..fe60747 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -84,13 +84,13 @@ struct in_addr;
__BEGIN_DECLS
int ascii2addr __P((int, const char *, void *));
char *addr2ascii __P((int, const void *, int, char *));
-unsigned long inet_addr __P((const char *));
+in_addr_t inet_addr __P((const char *));
int inet_aton __P((const char *, struct in_addr *));
-unsigned long inet_lnaof __P((struct in_addr));
-struct in_addr inet_makeaddr __P((u_long , u_long));
-char * inet_neta __P((u_long, char *, size_t));
-unsigned long inet_netof __P((struct in_addr));
-unsigned long inet_network __P((const char *));
+in_addr_t inet_lnaof __P((struct in_addr));
+struct in_addr inet_makeaddr __P((in_addr_t, in_addr_t));
+char * inet_neta __P((in_addr_t, char *, size_t));
+in_addr_t inet_netof __P((struct in_addr));
+in_addr_t inet_network __P((const char *));
char *inet_net_ntop __P((int, const void *, int, char *, size_t));
int inet_net_pton __P((int, const char *, void *, size_t));
char *inet_ntoa __P((struct in_addr));
OpenPOWER on IntegriCloud