examples: drop long cast for CURLALTSVC_*

Follow-up to d45b85d791 #18063
This commit is contained in:
Viktor Szakats 2025-08-01 18:54:14 +02:00
parent 80297e1dcb
commit a33893dac7
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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);