diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-20 10:42:01 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-20 11:29:07 +0100 |
commit | e3017e6411d753e42ecb9002c2a89a5b806d44f5 (patch) | |
tree | 7224c831caa6849fd19ed32ec15e2e6b3767ab3b /source4/dsdb/samdb/ldb_modules/acl.c | |
parent | 817ee962770a8ec5f96775c8ff3e6c52c291129f (diff) | |
download | samba-e3017e6411d753e42ecb9002c2a89a5b806d44f5.tar.gz samba-e3017e6411d753e42ecb9002c2a89a5b806d44f5.tar.bz2 samba-e3017e6411d753e42ecb9002c2a89a5b806d44f5.zip |
s4:acl LDB module - it's more correct to count the password attributes using "unsigned int"
Since these are derived from a LDB result.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 11:29:07 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/acl.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |