fix compiler warning: enumerated type mixed with another type
This commit is contained in:
@@ -169,7 +169,7 @@ static int setcharset(unsigned char **p, unsigned char *charset)
|
|||||||
if(!something_found) {
|
if(!something_found) {
|
||||||
if(charset[CURLFNM_NEGATE]) {
|
if(charset[CURLFNM_NEGATE]) {
|
||||||
charset[c] = 1;
|
charset[c] = 1;
|
||||||
something_found = 1;
|
something_found = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
charset[CURLFNM_NEGATE] = 1; /* negate charset */
|
charset[CURLFNM_NEGATE] = 1; /* negate charset */
|
||||||
|
|||||||
@@ -4172,7 +4172,7 @@ static CURLcode parse_url_userpass(struct SessionHandle *data,
|
|||||||
* set user/passwd, but doing that first adds more cases here :-(
|
* set user/passwd, but doing that first adds more cases here :-(
|
||||||
*/
|
*/
|
||||||
|
|
||||||
conn->bits.userpwd_in_url = 1;
|
conn->bits.userpwd_in_url = TRUE;
|
||||||
if(data->set.use_netrc != CURL_NETRC_REQUIRED) {
|
if(data->set.use_netrc != CURL_NETRC_REQUIRED) {
|
||||||
/* We could use the one in the URL */
|
/* We could use the one in the URL */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user