summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-24 12:01:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-24 12:01:20 +0000
commit8879b57b733c384944d5bb4308dc8710554ed1bf (patch)
tree8de11ca9ec73ae93d63cf83e9c37d1d587543ee0 /lib/hostip4.c
parente49a6feabbb28b360c6d7588375c439f18257c07 (diff)
downloadcurl-8879b57b733c384944d5bb4308dc8710554ed1bf.tar.gz
ah, simplified my latest change more
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 284ed0b7c..76f75181e 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -353,13 +353,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
h = gethostbyname(hostname);
if (!h)
infof(data, "gethostbyname(2) failed for %s\n", hostname);
- else {
- /*
- * Translate the hostent to Curl_addrinfo and return the allocated
- * data.
- */
- return Curl_addrinfo_copy(h, port);
- }
#endif /*HAVE_GETHOSTBYNAME_R */
}