From: Viktor Szakats Date: Fri, 1 Aug 2025 16:54:14 +0000 (+0200) Subject: examples: drop long cast for `CURLALTSVC_*` X-Git-Tag: curl-8_16_0~283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a33893dac738997ecab7a57e827687ecdb410305;p=thirdparty%2Fcurl.git examples: drop long cast for `CURLALTSVC_*` Follow-up to d45b85d79198a0259123923a6aa186ded2aaca6c #18063 --- diff --git a/docs/examples/altsvc.c b/docs/examples/altsvc.c index 2f70d05e1a..8a1ae8ed3b 100644 --- a/docs/examples/altsvc.c +++ b/docs/examples/altsvc.c @@ -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);