summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arpa/inet.h2
-rw-r--r--src/network/inet_legacy.c3
2 files changed, 2 insertions, 3 deletions
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);
diff --git a/src/network/inet_legacy.c b/src/network/inet_legacy.c
index 0a0ad6fc..de5b75c1 100644
--- a/src/network/inet_legacy.c
+++ b/src/network/inet_legacy.c
@@ -16,9 +16,8 @@ int inet_aton(const char *cp, struct in_addr *inp)
return 1;
}
-struct in_addr inet_makeaddr(int net, int host)
+struct in_addr inet_makeaddr(in_addr_t n, in_addr_t h)
{
- uint32_t n = net, h = host;
if (n < 256) h |= n<<24;
else if (n < 65536) h |= n<<16;
else h |= n<<8;