mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:07:21 +03:00
prefer L suffix over (long)
This commit is contained in:
parent
4e9d7b6169
commit
147b1c0ae9
4 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue