diff --git a/tests/libtest/lib1568.c b/tests/libtest/lib1568.c index 7a402a0293..eb8d31e926 100644 --- a/tests/libtest/lib1568.c +++ b/tests/libtest/lib1568.c @@ -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)); diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c index bef9260c4e..c5d4a5582e 100644 --- a/tests/libtest/lib510.c +++ b/tests/libtest/lib510.c @@ -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"); } diff --git a/tests/libtest/lib579.c b/tests/libtest/lib579.c index fd47d55be9..8ec94c3f66 100644 --- a/tests/libtest/lib579.c +++ b/tests/libtest/lib579.c @@ -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 */