diff --git a/tests/libtest/lib1513.c b/tests/libtest/lib1513.c index 545bf90abe..0584dd9991 100644 --- a/tests/libtest/lib1513.c +++ b/tests/libtest/lib1513.c @@ -57,11 +57,11 @@ static CURLcode test_lib1513(char *URL) easy_init(curl); easy_setopt(curl, CURLOPT_URL, URL); - easy_setopt(curl, CURLOPT_TIMEOUT, (long)7); - easy_setopt(curl, CURLOPT_NOSIGNAL, (long)1); + easy_setopt(curl, CURLOPT_TIMEOUT, 7L); + easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressKiller); easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL); - easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0); + easy_setopt(curl, CURLOPT_NOPROGRESS, 0L); res = curl_easy_perform(curl); diff --git a/tests/libtest/lib1555.c b/tests/libtest/lib1555.c index 39c9ad5cb9..51692fab67 100644 --- a/tests/libtest/lib1555.c +++ b/tests/libtest/lib1555.c @@ -62,11 +62,11 @@ static CURLcode test_lib1555(char *URL) easy_init(t1555_curl); easy_setopt(t1555_curl, CURLOPT_URL, URL); - easy_setopt(t1555_curl, CURLOPT_TIMEOUT, (long)7); - easy_setopt(t1555_curl, CURLOPT_NOSIGNAL, (long)1); + easy_setopt(t1555_curl, CURLOPT_TIMEOUT, 7L); + easy_setopt(t1555_curl, CURLOPT_NOSIGNAL, 1L); easy_setopt(t1555_curl, CURLOPT_PROGRESSFUNCTION, progressCallback); easy_setopt(t1555_curl, CURLOPT_PROGRESSDATA, NULL); - easy_setopt(t1555_curl, CURLOPT_NOPROGRESS, (long)0); + easy_setopt(t1555_curl, CURLOPT_NOPROGRESS, 0L); res = curl_easy_perform(t1555_curl); diff --git a/tests/libtest/lib2502.c b/tests/libtest/lib2502.c index fde4283972..af31ce3936 100644 --- a/tests/libtest/lib2502.c +++ b/tests/libtest/lib2502.c @@ -70,7 +70,7 @@ static CURLcode test_lib2502(char *URL) easy_setopt(curl[i], CURLOPT_URL, target_url); /* go http2 */ easy_setopt(curl[i], CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_3ONLY); - easy_setopt(curl[i], CURLOPT_CONNECTTIMEOUT_MS, (long)5000); + easy_setopt(curl[i], CURLOPT_CONNECTTIMEOUT_MS, 5000L); easy_setopt(curl[i], CURLOPT_CAINFO, libtest_arg4); /* wait for first connection established to see if we can share it */ easy_setopt(curl[i], CURLOPT_PIPEWAIT, 1L); diff --git a/tests/libtest/lib583.c b/tests/libtest/lib583.c index a68105ea47..07e0e4ac45 100644 --- a/tests/libtest/lib583.c +++ b/tests/libtest/lib583.c @@ -54,7 +54,7 @@ static CURLcode test_lib583(char *URL) easy_setopt(curl, CURLOPT_VERBOSE, 1L); easy_setopt(curl, CURLOPT_URL, URL); - easy_setopt(curl, CURLOPT_INFILESIZE, (long)5); + easy_setopt(curl, CURLOPT_INFILESIZE, 5L); multi_add_handle(multiHandle, curl);