aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib510.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-18 21:03:20 +0200
committerYang Tse <yangsita@gmail.com>2012-04-18 21:03:20 +0200
commitce8a321dd0c1f06dea1b8edf7b1b76e9672caaeb (patch)
treebe7e26b5d0e27e27a6b67990dd2e8b36abd9291b /tests/libtest/lib510.c
parent3833765ba5f77e74ce1d82d761b1c45ca2b32fbb (diff)
Some explicit conversion to 'long' of curl_easy_setopt() third argument
Explicit conversion to 'long' of curl_easy_setopt() third argument for options CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH given that this is how its bitmasks are docummented to be used.
Diffstat (limited to 'tests/libtest/lib510.c')
-rw-r--r--tests/libtest/lib510.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c
index 779164ad5..8278631c1 100644
--- a/tests/libtest/lib510.c
+++ b/tests/libtest/lib510.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -109,7 +109,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_HTTPHEADER, slist);
#ifdef LIB565
- test_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
+ test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
#endif