diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-24 01:27:00 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-24 01:27:00 +0000 |
commit | 6ea91af2f8f787f16b1bde88ae2293adcc961986 (patch) | |
tree | b7a84538b1b6217e877a01a2b41367d330d2e712 /lib | |
parent | b7674403995be67dae5017b9dd573cc7b4e65825 (diff) |
fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 7 | ||||
-rw-r--r-- | lib/http_chunks.c | 6 |
2 files changed, 5 insertions, 8 deletions
diff --git a/lib/http.c b/lib/http.c index 068748c3c..b6609c818 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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 diff --git a/lib/http_chunks.c b/lib/http_chunks.c index e0887483a..630a5a265 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -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) |