aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-04 12:57:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-04 12:57:12 +0000
commit59a30e6d9bb205d593ce0fe5bb585a13869636b2 (patch)
tree5cad5da3be32bbe2e47144683945e9fda395d145 /lib
parente0287fea20eb7b7cf4864a03df10b077b0a6b1b6 (diff)
prevent harmless compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index 91ed90460..e189de5d1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1856,9 +1856,6 @@ static CURLcode ConnectPlease(struct connectdata *conn,
static void verboseconnect(struct connectdata *conn,
struct Curl_dns_entry *dns)
{
-#ifdef HAVE_INET_NTOA_R
- char ntoa_buf[64];
-#endif
struct SessionHandle *data = conn->data;
/* Figure out the ip-number and display the first host name it shows: */
@@ -1896,6 +1893,9 @@ static void verboseconnect(struct connectdata *conn,
}
#else
{
+#ifdef HAVE_INET_NTOA_R
+ char ntoa_buf[64];
+#endif
Curl_addrinfo *hostaddr=dns?dns->addr:NULL;
struct in_addr in;
(void) memcpy(&in.s_addr, &conn->serv_addr.sin_addr, sizeof (in.s_addr));