diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-06-09 08:25:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-06-09 08:25:16 +0000 |
commit | 7929600798c8117d3ce6bf458a293b65c8f4a7b5 (patch) | |
tree | 8dc02726e4ddd8798fcbcc36d4aa0245b1ecd86f /tests | |
parent | a05ea124b94475a86542d476977519dcb0518c59 (diff) |
stricter type use to please compilers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib525.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c index b4cde12a2..3726bf6dd 100644 --- a/tests/libtest/lib525.c +++ b/tests/libtest/lib525.c @@ -16,7 +16,7 @@ int test(char *URL) { - CURLMcode res = CURLE_OK; + int res = 0; CURL *curl; FILE *hd_src ; int hd ; @@ -73,7 +73,7 @@ int test(char *URL) m = curl_multi_init(); - res = curl_multi_add_handle(m, curl); + res = (int)curl_multi_add_handle(m, curl); while(!done) { fd_set rd, wr, exc; @@ -84,7 +84,7 @@ int test(char *URL) interval.tv_usec = 0; while (res == CURLM_CALL_MULTI_PERFORM) { - res = curl_multi_perform(m, &running); + res = (int)curl_multi_perform(m, &running); if (running <= 0) { done = TRUE; break; @@ -125,5 +125,5 @@ int test(char *URL) fclose(hd_src); /* close the local file */ curl_global_cleanup(); - return (int)res; + return res; } |