]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samldb: Align two integer types
authorVolker Lendecke <vl@samba.org>
Wed, 25 Nov 2020 15:33:32 +0000 (16:33 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:38 +0000 (22:24 +0000)
ARRAY_SIZE is size_t

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/samldb.c

index 71338340c81df006a6b8c0d5c53c029812f6e3ba..f1e0b5cf650a867a9cf203a6f5e6cffb655d13bf 100644 (file)
@@ -1878,7 +1878,8 @@ static int samldb_prim_group_trigger(struct samldb_ctx *ac)
 static int samldb_check_user_account_control_invariants(struct samldb_ctx *ac,
                                                    uint32_t user_account_control)
 {
-       int i, ret = 0;
+       size_t i;
+       int ret = 0;
        bool need_check = false;
        const struct uac_to_guid {
                uint32_t uac;
@@ -1988,7 +1989,8 @@ static int samldb_check_user_account_control_acl(struct samldb_ctx *ac,
                                                 uint32_t user_account_control,
                                                 uint32_t user_account_control_old)
 {
-       int i, ret = 0;
+       size_t i;
+       int ret = 0;
        bool need_acl_check = false;
        struct ldb_result *res;
        const char * const sd_attrs[] = {"ntSecurityDescriptor", NULL};