]> granicus.if.org Git - curl/commitdiff
Fix compiler warnings: conversion from 'const int ' to 'unsigned char ', possible...
authorYang Tse <yangsita@gmail.com>
Tue, 2 Feb 2010 16:23:01 +0000 (16:23 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 2 Feb 2010 16:23:01 +0000 (16:23 +0000)
lib/multi.c

index 5d19b089b9c601371d6a28ce060acfe864f00cc5..02f84aa7d692c1b2a7666a5f373eae3ffa58b3af 100644 (file)
@@ -1201,7 +1201,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
             disconnect_conn = TRUE;
           }
           else
-            retry = newurl?TRUE:FALSE;
+            retry = (bool)(newurl?TRUE:FALSE);
 
           Curl_posttransfer(easy->easy_handle);
           drc = Curl_done(&easy->easy_conn, easy->result, FALSE);
@@ -1393,7 +1393,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
 
         easy->result = Curl_retry_request(easy->easy_conn, &newurl);
         if(!easy->result)
-          retry = newurl?TRUE:FALSE;
+          retry = (bool)(newurl?TRUE:FALSE);
 
         /* call this even if the readwrite function returned error */
         Curl_posttransfer(easy->easy_handle);