From 55f236a89fe427965f6d2d1d7c40abc2812e78fe Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 13:15:27 +0200 Subject: [PATCH] CURLOPT_IPRESOLVE.md drop cast, add note to history --- docs/libcurl/opts/CURLOPT_IPRESOLVE.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_IPRESOLVE.md b/docs/libcurl/opts/CURLOPT_IPRESOLVE.md index 1b13e3641d..4e49d06a42 100644 --- a/docs/libcurl/opts/CURLOPT_IPRESOLVE.md +++ b/docs/libcurl/opts/CURLOPT_IPRESOLVE.md @@ -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