From 107d3314d9a3d81de72adeecaef1db90d61c2c6b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Jul 2025 14:17:50 +0200 Subject: [PATCH] drop casts for CURLAUTH_ANY 1 --- src/config2setopts.c | 2 +- tests/libtest/lib540.c | 2 +- tests/libtest/lib552.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config2setopts.c b/src/config2setopts.c index 10c7b9a703..92a9b19e10 100644 --- a/src/config2setopts.c +++ b/src/config2setopts.c @@ -751,7 +751,7 @@ static CURLcode proxy_setopts(struct OperationConfig *config, CURL *curl) /* new in libcurl 7.10.6 */ if(config->proxyanyauth) - my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, (long)CURLAUTH_ANY); + my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY); else if(config->proxynegotiate) my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, CURLAUTH_GSSNEGOTIATE); else if(config->proxyntlm) diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c index 1914206972..b4c8a00eeb 100644 --- a/tests/libtest/lib540.c +++ b/tests/libtest/lib540.c @@ -61,7 +61,7 @@ static CURLcode init(int num, CURLM *cm, const char *url, const char *userpwd, if(res) goto init_failed; - res_easy_setopt(testeh[num], CURLOPT_PROXYAUTH, (long)CURLAUTH_ANY); + res_easy_setopt(testeh[num], CURLOPT_PROXYAUTH, CURLAUTH_ANY); if(res) goto init_failed; diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index 3fbdac130e..9a97d110af 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -198,7 +198,7 @@ static CURLcode test_lib552(char *URL) /* Accept any auth. But for this bug configure proxy with DIGEST, basic might work too, not NTLM */ - test_setopt(curl, CURLOPT_PROXYAUTH, (long)CURLAUTH_ANY); + test_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY); res = curl_easy_perform(curl);