diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-05 20:46:09 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-05 20:46:09 +0200 |
commit | a50210710ab6fd772e2762ed36602c15adfb49e1 (patch) | |
tree | 9ac720a0c9c0b628e1bfeba3b64c5a944e468117 /lib/http_chunks.c | |
parent | eb44ac013832aab80c3ed90292d7b4f25a8a4d75 (diff) | |
download | curl-a50210710ab6fd772e2762ed36602c15adfb49e1.tar.gz |
fix bool variables checking and assignment
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r-- | lib/http_chunks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c index d7a5cb48c..d6a0bec13 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -79,9 +79,9 @@ We avoid the use of isxdigit to accommodate non-ASCII hosts. */ static bool Curl_isxdigit(char digit) { - return (bool)( (digit >= 0x30 && digit <= 0x39) /* 0-9 */ - || (digit >= 0x41 && digit <= 0x46) /* A-F */ - || (digit >= 0x61 && digit <= 0x66) ); /* a-f */ + return ( (digit >= 0x30 && digit <= 0x39) /* 0-9 */ + || (digit >= 0x41 && digit <= 0x46) /* A-F */ + || (digit >= 0x61 && digit <= 0x66) /* a-f */ ) ? TRUE : FALSE; } void Curl_httpchunk_init(struct connectdata *conn) |