mirror of
https://github.com/curl/curl.git
synced 2026-06-08 15:14:23 +03:00
CURLOPT_IPRESOLVE.md drop cast, add note to history
This commit is contained in:
parent
1b3c1e44cb
commit
55f236a89f
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue