From a33893dac738997ecab7a57e827687ecdb410305 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 18:54:14 +0200 Subject: [PATCH] examples: drop long cast for `CURLALTSVC_*` Follow-up to d45b85d79198a0259123923a6aa186ded2aaca6c #18063 --- docs/examples/altsvc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2