aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-18 23:04:35 +0200
committerYang Tse <yangsita@gmail.com>2012-04-18 23:04:35 +0200
commit9421b06397d25426ab013e2b90d4604ed6430926 (patch)
treea68eb6cedecc10d15fa98340130dee605947e4e1 /lib/url.c
parent09690be8decdde2d8cb7c7a41d1d11021ec49c96 (diff)
Take in account that CURLAUTH_* bitmasks are now 'unsigned long'
Data type of internal vars holding CURLAUTH_* bitmasks changed from 'long' to 'unsigned long' for proper handling and operating.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index a290e3cea..ac496bb8d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1397,7 +1397,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
* Set HTTP Authentication type BITMASK.
*/
{
- long auth = va_arg(param, long);
+ unsigned long auth = va_arg(param, unsigned long);
/* the DIGEST_IE bit is only used to set a special marker, for all the
rest we need to handle it as normal DIGEST */
@@ -1461,7 +1461,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
* Set HTTP Authentication type BITMASK.
*/
{
- long auth = va_arg(param, long);
+ unsigned long auth = va_arg(param, unsigned long);
/* the DIGEST_IE bit is only used to set a special marker, for all the
rest we need to handle it as normal DIGEST */