aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-26 14:18:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-26 14:18:00 +0000
commit245e3122df4ec12fee41552a909be75714a268a2 (patch)
treef35c9c4c053a5fd9e06dfa118428b5f0c53e4170 /lib/url.c
parentffc5fa3a2be787c8198eb68836a45c440876c1bd (diff)
Made defines instead of plain numbers for the Curl_resolv() return code to
make the code easier to read
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index 6657b1832..33048c8b5 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1765,10 +1765,10 @@ static int handleSock5Proxy(const char *proxy_name,
Curl_addrinfo *hp=NULL;
int rc = Curl_resolv(conn, TRUE_HOSTNAME(conn), conn->remote_port, &dns);
- if(rc == -1)
+ if(rc == CURLRESOLV_ERROR)
return 1;
- if(rc == 1)
+ if(rc == CURLRESOLV_PENDING)
/* this requires that we're in "wait for resolve" state */
rc = Curl_wait_for_resolv(conn, &dns);
@@ -3062,7 +3062,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Resolve target host right on */
rc = Curl_resolv(conn, TRUE_HOSTNAME(conn), conn->port, &hostaddr);
- if(rc == 1)
+ if(rc == CURLRESOLV_PENDING)
*async = TRUE;
else if(!hostaddr) {
@@ -3077,7 +3077,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* resolve proxy */
rc = Curl_resolv(conn, conn->proxyhost, conn->port, &hostaddr);
- if(rc == 1)
+ if(rc == CURLRESOLV_PENDING)
*async = TRUE;
else if(!hostaddr) {