X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Flibtest%2Flib583.c;h=f0a088b70fa34dbf32be35620389f46ed0ba8647;hb=cfd75dcdb18d0a4291f48020211c65507a97d9eb;hp=5b11fab2b59354d47b2b0f63682ec98bb78d97ee;hpb=24b9957402f17c422eeeb3386bf049feeb342e78;p=platform%2Fupstream%2Fcurl.git diff --git a/tests/libtest/lib583.c b/tests/libtest/lib583.c index 5b11fab..f0a088b 100644 --- a/tests/libtest/lib583.c +++ b/tests/libtest/lib583.c @@ -35,7 +35,7 @@ int test(char *URL) int stillRunning; CURLM *multiHandle = NULL; CURL *curl = NULL; - int res = 0; + CURLMcode res = CURLM_OK; global_init(CURL_GLOBAL_ALL); @@ -65,10 +65,10 @@ int test(char *URL) fprintf(stderr, "curl_multi_perform() succeeded\n"); fprintf(stderr, "curl_multi_remove_handle()...\n"); - res = (int) curl_multi_remove_handle(multiHandle, curl); + res = curl_multi_remove_handle(multiHandle, curl); if(res) fprintf(stderr, "curl_multi_remove_handle() failed, " - "with code %d\n", res); + "with code %d\n", (int)res); else fprintf(stderr, "curl_multi_remove_handle() succeeded\n"); @@ -80,5 +80,5 @@ test_cleanup: curl_multi_cleanup(multiHandle); curl_global_cleanup(); - return res; + return (int)res; }