diff options
author | Yang Tse <yangsita@gmail.com> | 2012-04-18 23:04:35 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-04-18 23:04:35 +0200 |
commit | 9421b06397d25426ab013e2b90d4604ed6430926 (patch) | |
tree | a68eb6cedecc10d15fa98340130dee605947e4e1 /src | |
parent | 09690be8decdde2d8cb7c7a41d1d11021ec49c96 (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 'src')
-rw-r--r-- | src/tool_cfgable.h | 2 | ||||
-rw-r--r-- | src/tool_operate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h index 614f8b9b0..bef482282 100644 --- a/src/tool_cfgable.h +++ b/src/tool_cfgable.h @@ -37,7 +37,7 @@ struct Configurable { bool cookiesession; /* new session? */ bool encoding; /* Accept-Encoding please */ bool tr_encoding; /* Transfer-Encoding please */ - long authtype; /* auth bitmask */ + unsigned long authtype; /* auth bitmask */ bool use_resume; bool resume_from_current; bool disable_epsv; diff --git a/src/tool_operate.c b/src/tool_operate.c index 8c544194a..61b04d788 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -680,7 +680,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) int authbits = 0; int bitcheck = 0; while(bitcheck < 32) { - if(config->authtype & (1 << bitcheck++)) { + if(config->authtype & (1UL << bitcheck++)) { authbits++; if(authbits > 1) { /* more than one, we're done! */ |