use syscall_arg_t and __scc macro for arguments to __alt_socketcall
[musl] / src / network / inet_legacy.c
index 9907c54..621b47b 100644 (file)
@@ -1,21 +1,14 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include "__dns.h"
 
 in_addr_t inet_network(const char *p)
 {
        return ntohl(inet_addr(p));
 }
 
-int inet_aton(const char *cp, struct in_addr *inp)
+struct in_addr inet_makeaddr(in_addr_t n, in_addr_t h)
 {
-       return inet_pton(AF_INET, cp, (void *)inp) > 0;
-}
-
-struct in_addr inet_makeaddr(int net, int host)
-{
-       uint32_t n = net, h = host;
        if (n < 256) h |= n<<24;
        else if (n < 65536) h |= n<<16;
        else h |= n<<8;