diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-08 19:34:58 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-08 19:34:58 +0000 |
commit | 2ef72f7abb0f955d08a7f26d1a65a21be26b1af9 (patch) | |
tree | 22b8d1aaea77650ea5aa901d953f805b46746aab /lib/url.c | |
parent | eae27d178829e0a2529c6e51a1b9b7acb08f7d14 (diff) |
fix compiler warning
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1038,8 +1038,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, * other - POST is kept as POST after 301 and 302 */ long postRedir = va_arg(param, long); - data->set.post301 = (postRedir & CURL_REDIR_POST_301)?1:0; - data->set.post302 = (postRedir & CURL_REDIR_POST_302)?1:0; + data->set.post301 = (bool)((postRedir & CURL_REDIR_POST_301)?TRUE:FALSE); + data->set.post302 = (bool)((postRedir & CURL_REDIR_POST_302)?TRUE:FALSE); } break; @@ -3683,8 +3683,8 @@ static CURLcode parse_remote_port(struct SessionHandle *data, if(conn->bits.httpproxy) { /* we need to create new URL with the new port number */ char *url; - bool isftp = strequal("ftp", conn->protostr) || - strequal("ftps", conn->protostr); + bool isftp = (bool)(strequal("ftp", conn->protostr) || + strequal("ftps", conn->protostr)); /* * This synthesized URL isn't always right--suffixes like ;type=A |