summaryrefslogtreecommitdiff
path: root/lib/hostasyn.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-10-30 23:14:45 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-10-30 23:14:45 +0000
commitbefbc8f56b2d57b661498e936790493e0c4909f4 (patch)
treec83b576138566ed871bfc9236e4e0968b661f4a7 /lib/hostasyn.c
parenta9db36d1fde1978f74f4f42229498cce87c16de7 (diff)
downloadcurl-befbc8f56b2d57b661498e936790493e0c4909f4.tar.gz
code cleanup: Use 'CURLcode result'
Diffstat (limited to 'lib/hostasyn.c')
-rw-r--r--lib/hostasyn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hostasyn.c b/lib/hostasyn.c
index 8151b6714..6333f3bb9 100644
--- a/lib/hostasyn.c
+++ b/lib/hostasyn.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -75,7 +75,7 @@ CURLcode Curl_addrinfo_callback(struct connectdata *conn,
struct Curl_addrinfo *ai)
{
struct Curl_dns_entry *dns = NULL;
- CURLcode rc = CURLE_OK;
+ CURLcode result = CURLE_OK;
conn->async.status = status;
@@ -92,14 +92,14 @@ CURLcode Curl_addrinfo_callback(struct connectdata *conn,
if(!dns) {
/* failed to store, cleanup and return error */
Curl_freeaddrinfo(ai);
- rc = CURLE_OUT_OF_MEMORY;
+ result = CURLE_OUT_OF_MEMORY;
}
if(data->share)
Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
}
else {
- rc = CURLE_OUT_OF_MEMORY;
+ result = CURLE_OUT_OF_MEMORY;
}
}
@@ -112,7 +112,7 @@ CURLcode Curl_addrinfo_callback(struct connectdata *conn,
/* ipv4: The input hostent struct will be freed by ares when we return from
this function */
- return rc;
+ return result;
}
/* Call this function after Curl_connect() has returned async=TRUE and