s4:acl LDB module - fix counter types where appropriate
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 5 Jun 2010 18:08:45 +0000 (20:08 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 6 Jun 2010 18:43:38 +0000 (20:43 +0200)
source4/dsdb/samdb/ldb_modules/acl.c

index d2b6a2b9c98be5a8bf46f234f7970809ff852ccc..1b84e8a02f2b7a2dd1318cb034b348abe3faf89f 100644 (file)
@@ -411,7 +411,8 @@ static int acl_childClasses(struct ldb_module *module,
        struct ldb_message_element *oc_el;
        struct ldb_message_element *allowedClasses;
        const struct dsdb_class *sclass;
-       int i, j, ret;
+       unsigned int i, j;
+       int ret;
 
        /* If we don't have a schema yet, we can't do anything... */
        if (schema == NULL) {
@@ -468,7 +469,8 @@ static int acl_childClassesEffective(struct ldb_module *module,
        struct ldb_control *as_system = ldb_request_get_control(ac->req,
                                                                LDB_CONTROL_AS_SYSTEM_OID);
        struct dom_sid *sid = NULL;
-       int i, j, ret;
+       unsigned int i, j;
+       int ret;
 
        if (as_system != NULL) {
                as_system->critical = 0;