]> granicus.if.org Git - curl/commitdiff
Compiler warning fix
authorYang Tse <yangsita@gmail.com>
Sat, 27 Jan 2007 03:14:25 +0000 (03:14 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 27 Jan 2007 03:14:25 +0000 (03:14 +0000)
lib/multi.c
lib/sendf.c

index e10f5e43448dfe9b88a2744f005d4ab323661ed6..b501f296f8159f890099b9c9e19b0cbcd67eb2ff 100644 (file)
@@ -512,7 +512,7 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
   }
 
   if(easy) {
-    bool premature = easy->state != CURLM_STATE_COMPLETED;
+    bool premature = (bool)(easy->state != CURLM_STATE_COMPLETED);
 
     /* If the 'state' is not INIT or COMPLETED, we might need to do something
        nice to put the easy_handle in a good known state when this returns. */
index b66febe328b2eb1b44b8c2d34de434e1be7349f0..500bf66f06af874d6d28d1af09acc65be0d8dca9 100644 (file)
@@ -474,7 +474,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
   ssize_t nread;
   size_t bytesfromsocket = 0;
   char *buffertofill = NULL;
-  bool pipelining = (conn->data->multi &&
+  bool pipelining = (bool)(conn->data->multi &&
                      Curl_multi_canPipeline(conn->data->multi));
 
   /* Set 'num' to 0 or 1, depending on which socket that has been sent here.