]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples: drop long cast for `CURLALTSVC_*` master
authorViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 16:54:14 +0000 (18:54 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 16:54:27 +0000 (18:54 +0200)
Follow-up to d45b85d79198a0259123923a6aa186ded2aaca6c #18063

docs/examples/altsvc.c

index 2f70d05e1ab2940a19551232d613928b6e0054d6..8a1ae8ed3b4065d15b32a7417a63b3c364ede5a8 100644 (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);