mirror of
https://github.com/curl/curl.git
synced 2026-08-14 22:13:38 +03:00
fix compiler warning
This commit is contained in:
parent
b767440399
commit
6ea91af2f8
4 changed files with 13 additions and 16 deletions
|
|
@ -1836,13 +1836,10 @@ static CURLcode https_connecting(struct connectdata *conn, bool *done)
|
|||
|
||||
/* perform SSL initialization for this socket */
|
||||
result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, done);
|
||||
if(result) {
|
||||
if(result)
|
||||
conn->bits.close = TRUE; /* a failed connection is marked for closure
|
||||
to prevent (bad) re-use or similar */
|
||||
return result;
|
||||
}
|
||||
|
||||
return CURLE_OK;
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef USE_SSLEAY
|
||||
|
|
|
|||
|
|
@ -85,9 +85,9 @@
|
|||
We avoid the use of isxdigit to accommodate non-ASCII hosts. */
|
||||
static bool Curl_isxdigit(char digit)
|
||||
{
|
||||
return (digit >= 0x30 && digit <= 0x39) /* 0-9 */
|
||||
|| (digit >= 0x41 && digit <= 0x46) /* A-F */
|
||||
|| (digit >= 0x61 && digit <= 0x66); /* a-f */
|
||||
return (bool)( (digit >= 0x30 && digit <= 0x39) /* 0-9 */
|
||||
|| (digit >= 0x41 && digit <= 0x46) /* A-F */
|
||||
|| (digit >= 0x61 && digit <= 0x66) ); /* a-f */
|
||||
}
|
||||
|
||||
void Curl_httpchunk_init(struct connectdata *conn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue