CURLOPT_SOCKS5_AUTH.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:36:33 +02:00
parent 398ef65d23
commit fe3a2f86bf
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -52,7 +52,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://user:pass@myproxy.com");
/* enable username/password authentication only */
curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, (long)CURLAUTH_BASIC);
curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, CURLAUTH_BASIC);
/* Perform the request */
curl_easy_perform(curl);
@ -60,6 +60,11 @@ int main(void)
}
~~~
# HISTORY
CURLAUTH_\* macros became `long` types in 7.26.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE