summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-03 05:23:50 -0700
committerMichael Adam <obnox@samba.org>2011-02-07 19:24:19 +0100
commit1d58fcc9259d929093d381f0bd6690345e7c8040 (patch)
treec31138ff919c8af6ce1dd9e09656769b205f1768 /libcli
parent91a56b420a7a6f71d69b0bb88143748d834d4a80 (diff)
downloadsamba-1d58fcc9259d929093d381f0bd6690345e7c8040.tar.gz
libcli/security: Make add_sid_to_array_unique use a uin32_t counter
Logical consequence of the previous commit Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 7 19:24:19 CET 2011 on sn-devel-104
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/util_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c
index 6aec2c0734..535e81cbdb 100644
--- a/libcli/security/util_sid.c
+++ b/libcli/security/util_sid.c
@@ -310,7 +310,7 @@ NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num_sids)
{
- size_t i;
+ uint32_t i;
for (i=0; i<(*num_sids); i++) {
if (dom_sid_compare(sid, &(*sids)[i]) == 0)