From e3017e6411d753e42ecb9002c2a89a5b806d44f5 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 20 Nov 2010 10:42:01 +0100 Subject: s4:acl LDB module - it's more correct to count the password attributes using "unsigned int" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since these are derived from a LDB result. Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Sat Nov 20 11:29:07 CET 2010 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/acl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index 69ab72a855..7fc626ad51 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -70,7 +70,8 @@ static int acl_module_init(struct ldb_module *module) { struct ldb_context *ldb; struct acl_private *data; - int ret, i; + int ret; + unsigned int i; TALLOC_CTX *mem_ctx; static const char *attrs[] = { "passwordAttribute", NULL }; struct ldb_result *res; @@ -1052,7 +1053,8 @@ static int acl_search_callback(struct ldb_request *req, struct ldb_reply *ares) "objectSid", NULL }; - int ret, i; + int ret; + unsigned int i; ac = talloc_get_type(req->context, struct acl_context); data = talloc_get_type(ldb_module_get_private(ac->module), struct acl_private); @@ -1139,7 +1141,8 @@ static int acl_search(struct ldb_module *module, struct ldb_request *req) struct acl_context *ac; struct ldb_request *down_req; struct acl_private *data; - int ret, i; + int ret; + unsigned int i; ldb = ldb_module_get_ctx(module); -- cgit