drop casts for CURLAUTH_ANY 1

This commit is contained in:
Viktor Szakats 2025-07-01 14:17:50 +02:00
parent 331206475b
commit 107d3314d9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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;

View file

@ -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);