CURLOPT_ALTSVC_CTRL.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:14:03 +02:00
parent 1530bd2b5b
commit 1b3c1e44cb
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -84,13 +84,18 @@ int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, (long)CURLALTSVC_H1);
curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, CURLALTSVC_H1);
curl_easy_setopt(curl, CURLOPT_ALTSVC, "altsvc-cache.txt");
curl_easy_perform(curl);
}
}
~~~
# HISTORY
CURLALTSVC_\* macros became `long` types in 8.16.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE