summaryrefslogtreecommitdiff
path: root/libds
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 17:49:47 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 19:23:06 +0200
commit2fb111f7313ddd3bf5f4eee0a54284b201100605 (patch)
tree752afeebedb64fb373cebde2702828db0a599d44 /libds
parent22d42432acb158a7b0ebb4faee3aebd53a494efd (diff)
downloadsamba-2fb111f7313ddd3bf5f4eee0a54284b201100605.tar.gz
samba-2fb111f7313ddd3bf5f4eee0a54284b201100605.tar.bz2
samba-2fb111f7313ddd3bf5f4eee0a54284b201100605.zip
libds:flag_mapping.c - fix counter variable types
Diffstat (limited to 'libds')
-rw-r--r--libds/common/flag_mapping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libds/common/flag_mapping.c b/libds/common/flag_mapping.c
index 429ccacb49..d95780ed54 100644
--- a/libds/common/flag_mapping.c
+++ b/libds/common/flag_mapping.c
@@ -54,7 +54,8 @@ static const struct {
uint32_t ds_acb2uf(uint32_t acb)
{
- uint32_t i, ret = 0;
+ unsigned int i;
+ uint32_t ret = 0;
for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) {
if (acct_flags_map[i].acb & acb) {
ret |= acct_flags_map[i].uf;
@@ -68,7 +69,7 @@ translated the UserFlags (userAccountControl) to ACB_CTRL Flags
*/
uint32_t ds_uf2acb(uint32_t uf)
{
- uint32_t i;
+ unsigned int i;
uint32_t ret = 0;
for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) {
if (acct_flags_map[i].uf & uf) {