arping: stop using last gethostbyname2 in the tree

hostname: small optimization
This commit is contained in:
Denis Vlasenko
2007-01-25 19:44:38 +00:00
parent aeb4bdd582
commit 90ec4dc0c7
3 changed files with 9 additions and 12 deletions

View File

@@ -338,8 +338,6 @@ char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa, socklen_t salen)
// "old" (ipv4 only) API
// users: traceroute.c hostname.c ifconfig.c ping.c
struct hostent *xgethostbyname(const char *name);
//TODO: eliminate gethostbyname2 in arping (the only remaining place),
//use host_and_af2sockaddr instead.
extern char *xstrdup(const char *s);