drop cast for CURLAUTH_ANY 2 examples

This commit is contained in:
Viktor Szakats 2025-07-01 14:57:45 +02:00
parent 707146bc07
commit b7c2eb8bf6
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -142,7 +142,7 @@ int main(int argc, char **argv)
/* tell libcurl we can use "any" auth, which lets the lib pick one, but it
also costs one extra round-trip and possibly sending of all the PUT
data twice!!! */
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
/* set user name and password for the authentication */
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");