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/connect.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/connect.c')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c index 088ca3034..e55464cdf 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -263,7 +263,7 @@ static CURLcode bindlocal(struct connectdata *conn, * We now have the numerical IPv4-style x.y.z.w in the 'myhost' buffer */ rc = Curl_resolv(conn, myhost, 0, &h); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) (void)Curl_wait_for_resolv(conn, &h); if(h) @@ -276,7 +276,7 @@ static CURLcode bindlocal(struct connectdata *conn, * or IP number */ rc = Curl_resolv(conn, data->set.device, 0, &h); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) (void)Curl_wait_for_resolv(conn, &h); if(h) |