From dbe221ecff2dd8a3d4d005d80b81064e156f8f4a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 6 Jan 2014 22:17:24 -0500 Subject: fix argument types for legacy function inet_makeaddr the type int was taken from seemingly erroneous man pages. glibc uses in_addr_t (uint32_t), and semantically, the arguments should be unsigned. --- include/arpa/inet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 5dcadaae..37f8c11e 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -20,7 +20,7 @@ int inet_pton (int, const char *__restrict, void *__restrict); const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t); int inet_aton (const char *, struct in_addr *); -struct in_addr inet_makeaddr(int, int); +struct in_addr inet_makeaddr(in_addr_t, in_addr_t); in_addr_t inet_lnaof(struct in_addr); in_addr_t inet_netof(struct in_addr); -- cgit v1.2.1