aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-29 23:45:43 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-29 23:45:43 +0000
commit4114129ac0aa4ed94f4867dc18d2994c87ab5cf5 (patch)
tree36dd2ca83938030fe8e7f88b320ebfe2ed290145 /lib/hostip.c
parent6d24719167c85165a91a387c4c9af38fa93587e2 (diff)
Fixed a couple of compile warnings.
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 69f3c997f..c6b3913a6 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -538,9 +538,9 @@ int Curl_resolv_timeout(struct connectdata *conn,
#endif /* HAVE_SIGACTION */
unsigned int prev_alarm=0;
+ struct SessionHandle *data = conn->data;
#endif /* USE_ALARM_TIMEOUT */
- struct SessionHandle *data = conn->data;
int rc = CURLRESOLV_ERROR; /* error by default */
*entry = NULL;
@@ -595,7 +595,9 @@ int Curl_resolv_timeout(struct connectdata *conn,
#else
#ifndef CURLRES_ASYNCH
if(timeout)
- infof(data, "timeout on name lookup is not supported\n");
+ infof(conn->data, "timeout on name lookup is not supported\n");
+#else
+ (void)timeout; /* timeout not used with an async resolver */
#endif
#endif /* USE_ALARM_TIMEOUT */