mirror of
https://github.com/curl/curl.git
synced 2026-07-27 15:19:10 +03:00
drop casts for CURLAUTH_*
This commit is contained in:
parent
c4480abd0d
commit
ac755f5669
3 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ static CURLcode test_lib1568(char *URL)
|
|||
curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
|
||||
curl_easy_setopt(hnd, CURLOPT_USERPWD, "testuser:testpass");
|
||||
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "lib1568");
|
||||
curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
|
||||
curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
|
||||
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
|
||||
curl_easy_setopt(hnd, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10));
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ static CURLcode test_lib510(char *URL)
|
|||
test_setopt(curl, CURLOPT_HTTPHEADER, slist);
|
||||
|
||||
if(testnum == 565) {
|
||||
test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
|
||||
test_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
|
||||
test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ static CURLcode test_lib579(char *URL)
|
|||
/* enforce chunked transfer by setting the header */
|
||||
test_setopt(curl, CURLOPT_HTTPHEADER, slist);
|
||||
|
||||
test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
|
||||
test_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
|
||||
test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
|
||||
|
||||
/* we want to use our own progress function */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue