diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:18:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:18:00 +0000 |
commit | 245e3122df4ec12fee41552a909be75714a268a2 (patch) | |
tree | f35c9c4c053a5fd9e06dfa118428b5f0c53e4170 /lib/ftp.c | |
parent | ffc5fa3a2be787c8198eb68836a45c440876c1bd (diff) |
Made defines instead of plain numbers for the Curl_resolv() return code to
make the code easier to read
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1367,14 +1367,14 @@ CURLcode ftp_use_port(struct connectdata *conn) if((in == CURL_INADDR_NONE) && Curl_if2ip(data->set.ftpport, myhost, sizeof(myhost))) { rc = Curl_resolv(conn, myhost, 0, &h); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) rc = Curl_wait_for_resolv(conn, &h); } else { size_t len = strlen(data->set.ftpport); if(len>1) { rc = Curl_resolv(conn, data->set.ftpport, 0, &h); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) rc = Curl_wait_for_resolv(conn, &h); } if(h) @@ -1642,7 +1642,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, * now, instead we remake the lookup here and now! */ rc = Curl_resolv(conn, conn->proxyhost, conn->port, &addr); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) rc = Curl_wait_for_resolv(conn, &addr); connectport = @@ -1652,7 +1652,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, else { /* normal, direct, ftp connection */ rc = Curl_resolv(conn, newhostp, newport, &addr); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) rc = Curl_wait_for_resolv(conn, &addr); if(!addr) { |