summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-05-31 16:36:05 +0200
committerYang Tse <yangsita@gmail.com>2010-05-31 16:36:05 +0200
commita9483b1f4acf80859f252832ec69a21b683556a3 (patch)
treeb19466ea3f231ff42ee6ea0f931f735e65cafb97
parent40f8aaedb731c9ee56275a75c097a084776eaa3b (diff)
downloadgnurl-a9483b1f4acf80859f252832ec69a21b683556a3.tar.gz
gnurl-a9483b1f4acf80859f252832ec69a21b683556a3.tar.bz2
gnurl-a9483b1f4acf80859f252832ec69a21b683556a3.zip
fix compiler warning: enumerated type mixed with another type
-rw-r--r--lib/socks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/socks.c b/lib/socks.c
index a10a99186..7b5740be4 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -603,9 +603,9 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
if(rc == CURLRESOLV_PENDING) {
/* this requires that we're in "wait for resolve" state */
- rc = Curl_wait_for_resolv(conn, &dns);
- if(rc)
- return rc;
+ code = Curl_wait_for_resolv(conn, &dns);
+ if(code != CURLE_OK)
+ return code;
}
/*