CURLOPT_IPRESOLVE.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:15:27 +02:00
parent 1b3c1e44cb
commit 55f236a89f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -66,7 +66,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
/* of all addresses example.com resolves to, only IPv6 ones are used */
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V6);
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
res = curl_easy_perform(curl);
@ -75,6 +75,11 @@ int main(void)
}
~~~
# HISTORY
CURL_IPRESOLVE_\* macros became `long` types in 8.15.0, before this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE