mirror of
https://github.com/curl/curl.git
synced 2026-07-25 14:27:23 +03:00
examples: drop long cast for CURLALTSVC_*
Follow-up to d45b85d791 #18063
This commit is contained in:
parent
80297e1dcb
commit
a33893dac7
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_ALTSVC, "altsvc.txt");
|
||||
|
||||
/* restrict which HTTP versions to use alternatives */
|
||||
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, (long)
|
||||
CURLALTSVC_H1|CURLALTSVC_H2|CURLALTSVC_H3);
|
||||
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL,
|
||||
CURLALTSVC_H1 | CURLALTSVC_H2 | CURLALTSVC_H3);
|
||||
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue