aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-24 17:26:21 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-24 17:25:35 +0000
commit8830df8b66651c0fc4e9273c37cb373947674997 (patch)
tree83a9443233f3738f73ca108cb5e69fac2e0b852d /lib
parenta89ec793d0924a351e18386ddc0bab9995abc83c (diff)
gtls: Use preferred 'CURLcode result'
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/gtls.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index a9c42c2d8..c8d701f82 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -1151,12 +1151,12 @@ Curl_gtls_connect(struct connectdata *conn,
int sockindex)
{
- CURLcode retcode;
+ CURLcode result;
bool done = FALSE;
- retcode = gtls_connect_common(conn, sockindex, FALSE, &done);
- if(retcode)
- return retcode;
+ result = gtls_connect_common(conn, sockindex, FALSE, &done);
+ if(result)
+ return result;
DEBUGASSERT(done);
@@ -1304,10 +1304,10 @@ static ssize_t gtls_recv(struct connectdata *conn, /* connection data */
if(ret == GNUTLS_E_REHANDSHAKE) {
/* BLOCKING call, this is bad but a work-around for now. Fixing this "the
proper way" takes a whole lot of work. */
- CURLcode rc = handshake(conn, num, FALSE, FALSE);
- if(rc)
+ CURLcode result = handshake(conn, num, FALSE, FALSE);
+ if(result)
/* handshake() writes error message on its own */
- *curlcode = rc;
+ *curlcode = result;
else
*curlcode = CURLE_AGAIN; /* then return as if this was a wouldblock */
return -1;