drop cast for CURLAUTH_BASIC in docs

This commit is contained in:
Viktor Szakats 2025-07-01 16:35:29 +02:00
parent ac755f5669
commit af982387a2
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);