From b7c2eb8bf63f94eb777a30a20da124d73d1b5f7c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Jul 2025 14:57:45 +0200 Subject: [PATCH] drop cast for CURLAUTH_ANY 2 examples --- docs/examples/anyauthput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index 7106c32eb6..c62250dce3 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -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");