aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-01 17:34:24 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-01 17:34:24 +0000
commit88513d2d1ad60767b2d4e41a0e3a7b42894ff973 (patch)
tree8e6f00995cc8c1d45b93e08f1a52e2c1f6e99831 /lib/hostip.c
parent91bc396178bde0bdfa967772d5ce44a6961ab522 (diff)
Fixed some compiler warnings with gcc
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index c6b3913a6..029019215 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -540,8 +540,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
unsigned int prev_alarm=0;
struct SessionHandle *data = conn->data;
#endif /* USE_ALARM_TIMEOUT */
-
- int rc = CURLRESOLV_ERROR; /* error by default */
+ int rc;
*entry = NULL;
@@ -562,7 +561,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
if(sigsetjmp(curl_jmpenv, 1)) {
/* this is coming from a siglongjmp() after an alarm signal */
failf(data, "name lookup timed out");
- return rc;
+ return CURLRESOLV_ERROR;
}
/*************************************************************