]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 15:22:43 +0000 (17:22 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 15:22:43 +0000 (17:22 +0200)
lib/curl_fnmatch.c
lib/url.c

index 6485c97bb04e454d175b30bbb6adc7d3d451cdf2..b250a223a822ec3b41a6ef85eff9cf582dacd4f6 100644 (file)
@@ -169,7 +169,7 @@ static int setcharset(unsigned char **p, unsigned char *charset)
         if(!something_found) {
           if(charset[CURLFNM_NEGATE]) {
             charset[c] = 1;
-            something_found = 1;
+            something_found = TRUE;
           }
           else
             charset[CURLFNM_NEGATE] = 1; /* negate charset */
index 3b15f3c3bbe41c65118ed0335824388acb8619e3..6c48dcb2e96c7dfcf45436e36928881157d9ccc5 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -4172,7 +4172,7 @@ static CURLcode parse_url_userpass(struct SessionHandle *data,
      * 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) {
       /* We could use the one in the URL */