libds:flag_mapping.c - fix counter variable types
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Sep 2010 15:49:47 +0000 (17:49 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Sep 2010 17:23:06 +0000 (19:23 +0200)
libds/common/flag_mapping.c

index 429ccacb490b8713c6dde7587450a290350e8a4a..d95780ed5443b12be2ad7db1a4e8b948d84e73e2 100644 (file)
@@ -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) {