mirror of
https://github.com/curl/curl.git
synced 2025-04-06 16:10:34 +08:00
Compiler warning fix
This commit is contained in:
parent
b2c378267b
commit
d771fa7c48
@ -55,7 +55,7 @@ int test(char *URL)
|
||||
return TEST_ERR_MAJOR_BAD;
|
||||
}
|
||||
|
||||
if ((res = (int)curl_multi_add_handle(m, c)) != CURLM_OK) {
|
||||
if ((res = curl_multi_add_handle(m, c)) != CURLM_OK) {
|
||||
fprintf(stderr, "curl_multi_add_handle() failed, "
|
||||
"with code %d\n", res);
|
||||
curl_multi_cleanup(m);
|
||||
@ -86,7 +86,7 @@ int test(char *URL)
|
||||
res = CURLM_CALL_MULTI_PERFORM;
|
||||
|
||||
while (res == CURLM_CALL_MULTI_PERFORM) {
|
||||
res = (int)curl_multi_perform(m, &running);
|
||||
res = curl_multi_perform(m, &running);
|
||||
if (curlx_tvdiff(curlx_tvnow(), mp_start) >
|
||||
MULTI_PERFORM_HANG_TIMEOUT) {
|
||||
mp_timedout = TRUE;
|
||||
|
@ -38,7 +38,7 @@ int test(char *URL)
|
||||
|
||||
curl_easy_setopt(curls, CURLOPT_URL, URL);
|
||||
|
||||
if ((res = (int)curl_multi_add_handle(multi, curls)) != CURLM_OK) {
|
||||
if ((res = curl_multi_add_handle(multi, curls)) != CURLM_OK) {
|
||||
fprintf(stderr, "curl_multi_add_handle() failed, "
|
||||
"with code %d\n", res);
|
||||
curl_easy_cleanup(curls);
|
||||
|
Loading…
x
Reference in New Issue
Block a user