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/lookup_name.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/network/lookup_name.c') diff --git a/src/network/lookup_name.c b/src/network/lookup_name.c index 83c0fc27..8d41627a 100644 --- a/src/network/lookup_name.c +++ b/src/network/lookup_name.c @@ -36,11 +36,13 @@ static int name_from_null(struct address buf[static 2], const char *name, int fa return cnt; } +int __inet_aton(const char *, struct in_addr *); + static int name_from_numeric(struct address buf[static 1], const char *name, int family) { struct in_addr a4; struct in6_addr a6; - if (family != AF_INET6 && inet_aton(name, &a4)>0) { + if (family != AF_INET6 && __inet_aton(name, &a4)>0) { memcpy(&buf[0].addr, &a4, sizeof a4); buf[0].family = AF_INET; return 1; -- cgit v1.2.1