summaryrefslogtreecommitdiff
path: root/src/network/lookup_name.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-02 05:00:48 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-02 05:00:48 -0400
commit76f440cff73878a7359e944618a7722dfd23bdec (patch)
tree1792a5a1b2db7e946fcdda1da16e7bb0e1641127 /src/network/lookup_name.c
parent3330198060c7b3165a2fba530ffde5fc6706ecf2 (diff)
downloadmusl-76f440cff73878a7359e944618a7722dfd23bdec.tar.gz
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.
Diffstat (limited to 'src/network/lookup_name.c')
-rw-r--r--src/network/lookup_name.c4
1 files changed, 3 insertions, 1 deletions
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;