From 76f440cff73878a7359e944618a7722dfd23bdec Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 2 Jun 2014 05:00:48 -0400 Subject: remove cruft from old resolver and numeric ip parsing the old resolver code used a function __ipparse which contained the logic for inet_addr and inet_aton, which is needed in getaddrinfo. this was phased out in the resolver overhaul in favor of directly using inet_aton and inet_pton as appropriate. this commit cleans up some stuff that was left behind. --- src/network/inet_legacy.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/network/inet_legacy.c') diff --git a/src/network/inet_legacy.c b/src/network/inet_legacy.c index de5b75c1..621b47b0 100644 --- a/src/network/inet_legacy.c +++ b/src/network/inet_legacy.c @@ -1,21 +1,12 @@ #include #include #include -#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 sockaddr_in sin; - if (__ipparse(&sin, AF_INET, cp) < 0) return 0; - *inp = sin.sin_addr; - return 1; -} - struct in_addr inet_makeaddr(in_addr_t n, in_addr_t h) { if (n < 256) h |= n<<24; -- cgit 1.4.1