git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d4243
)
libds:flag_mapping.c - fix counter variable types
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 12 Sep 2010 15:49:47 +0000
(17:49 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 12 Sep 2010 17:23:06 +0000
(19:23 +0200)
libds/common/flag_mapping.c
patch
|
blob
|
history
diff --git
a/libds/common/flag_mapping.c
b/libds/common/flag_mapping.c
index 429ccacb490b8713c6dde7587450a290350e8a4a..d95780ed5443b12be2ad7db1a4e8b948d84e73e2 100644
(file)
--- 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)
{
- u
int32_
t i;
+ u
nsigned in
t i;
uint32_t ret = 0;
for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) {
if (acct_flags_map[i].uf & uf) {