diff options
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/unixinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/unixinfo.c b/source4/torture/rpc/unixinfo.c index 3eafb17c44..6d1772a4f4 100644 --- a/source4/torture/rpc/unixinfo.c +++ b/source4/torture/rpc/unixinfo.c @@ -47,8 +47,8 @@ static BOOL test_uidtosid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) static BOOL test_getpwuid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) { uint64_t uids[512]; - const int num_uids = sizeof(uids)/sizeof(uids[0]); - int i; + uint32_t num_uids = ARRAY_SIZE(uids); + uint32_t i; struct unixinfo_GetPWUid r; NTSTATUS result; @@ -56,7 +56,7 @@ static BOOL test_getpwuid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) uids[i] = i; } - r.in.count = num_uids; + r.in.count = &num_uids; r.in.uids = uids; result = dcerpc_unixinfo_GetPWUid(p, mem_ctx, &r); |