]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli: Convert an int to a size_t
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2024 11:46:05 +0000 (13:46 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 12:09:35 +0000 (12:09 +0000)
More appropriate for an array length

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/security/secacl.c
libcli/security/secacl.h

index 6c92a2eda76206c91c9d7fe22b8ecf43c7ba8f23..388d97ca3befbbba3326f85ff63f1d15b7053052 100644 (file)
@@ -34,7 +34,7 @@
 struct security_acl *make_sec_acl(
        TALLOC_CTX *ctx,
        enum security_acl_revision revision,
-       int num_aces,
+       size_t num_aces,
        const struct security_ace *ace_list)
 {
        struct security_acl *dst;
index 961e2b4d891686b84832b93c931a0fb5c6d38333..6772a167661f66c4a45615765d9fc8146611b889 100644 (file)
@@ -26,7 +26,7 @@
 struct security_acl *make_sec_acl(
        TALLOC_CTX *ctx,
        enum security_acl_revision revision,
-       int num_aces,
+       size_t num_aces,
        const struct security_ace *ace_list);
 
 #endif /*_SECACL_H_*/