summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/userman.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-02-28 10:32:06 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-02-28 10:32:06 +1100
commit17207133ea446670e2123b510a593456928882fb (patch)
treefba2e437bacea8582ec3e051bfd7d59311f76ab0 /source4/torture/libnet/userman.c
parent227cecadf92effb7bdbeabdf7a8c7e514ebe9794 (diff)
downloadsamba-17207133ea446670e2123b510a593456928882fb.tar.gz
samba-17207133ea446670e2123b510a593456928882fb.tar.bz2
samba-17207133ea446670e2123b510a593456928882fb.zip
Fix up the libnet tests.
These tests still do not pass against windows, but at least now it doesn't reset acct_flags to 0. This is enough to have Samba4 pass it's own tests for the moment. Andrew Bartlett (This used to be commit aa3901311eb7ce6f2d2b2413323e31a5b064cfc4)
Diffstat (limited to 'source4/torture/libnet/userman.c')
-rw-r--r--source4/torture/libnet/userman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c
index 0d08284a9f..1d630e5ecd 100644
--- a/source4/torture/libnet/userman.c
+++ b/source4/torture/libnet/userman.c
@@ -189,7 +189,7 @@ static bool test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
case acct_flags:
continue_if_field_set(mod->in.change.acct_flags);
- mod->in.change.acct_flags = flags[random() % (sizeof(flags)/sizeof(uint32_t))];
+ mod->in.change.acct_flags = flags[random() % ARRAY_SIZE(flags)];
mod->in.change.fields |= USERMOD_FIELD_ACCT_FLAGS;
fldname = "acct_flags";
break;