summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-24 22:01:36 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-24 22:01:36 +0200
commit189950ce0615806b20a5536e6621d541044be42d (patch)
tree3d07ad6d3b4116733236df74479450f99481ac14 /source4/dsdb
parent4d76c0aa80e58ce944419bf36c695e7104c73712 (diff)
downloadsamba-189950ce0615806b20a5536e6621d541044be42d.tar.gz
samba-189950ce0615806b20a5536e6621d541044be42d.tar.bz2
samba-189950ce0615806b20a5536e6621d541044be42d.zip
s4:dsdb_enum_group_mem - use "unsigned" counters
"size_t" counters aren't really needed here (we don't check data lengths). And we save the result in a certain "num_sids" variable which is of type "unsigned".
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util_samr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/common/util_samr.c b/source4/dsdb/common/util_samr.c
index 94d29647ee..6a14f0a4f4 100644
--- a/source4/dsdb/common/util_samr.c
+++ b/source4/dsdb/common/util_samr.c
@@ -410,10 +410,11 @@ NTSTATUS dsdb_enum_group_mem(struct ldb_context *ldb,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn,
struct dom_sid **members_out,
- size_t *pnum_members)
+ unsigned int *pnum_members)
{
struct ldb_message *msg;
- int i, ret;
+ unsigned int i;
+ int ret;
struct dom_sid *members;
struct ldb_message_element *member_el;
const char *attrs[] = { "member", NULL };