summaryrefslogtreecommitdiff
path: root/src/network/inet_legacy.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/inet_legacy.c
parent3330198060c7b3165a2fba530ffde5fc6706ecf2 (diff)
downloadmusl-76f440cff73878a7359e944618a7722dfd23bdec.tar.gz
musl-76f440cff73878a7359e944618a7722dfd23bdec.tar.bz2
musl-76f440cff73878a7359e944618a7722dfd23bdec.tar.xz
musl-76f440cff73878a7359e944618a7722dfd23bdec.zip
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/inet_legacy.c')
-rw-r--r--src/network/inet_legacy.c9
1 files changed, 0 insertions, 9 deletions
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 <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 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;