diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-16 09:22:43 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-21 10:46:40 +0100 |
commit | d2b336ae319053dee96476131a3dc0c45b306b5f (patch) | |
tree | 430b644cc989158a6aaf448d6392e59596d1e62e /libcli | |
parent | 618c11cc15b0c7b16cd21e9bc10dbe474aa514ff (diff) | |
download | samba-d2b336ae319053dee96476131a3dc0c45b306b5f.tar.gz samba-d2b336ae319053dee96476131a3dc0c45b306b5f.tar.xz samba-d2b336ae319053dee96476131a3dc0c45b306b5f.zip |
libcli/security/security_descriptor.c - fix three wrong counter variables
These strictly need to be "uint32_t" since "acl*->num_aces" has been
defined by this type.
This counter patchset has been reviewed by Andrew Bartlett.
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/security_descriptor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/security/security_descriptor.c b/libcli/security/security_descriptor.c index 60f9de8f879..574dd4e317b 100644 --- a/libcli/security/security_descriptor.c +++ b/libcli/security/security_descriptor.c @@ -85,7 +85,7 @@ struct security_acl *security_acl_concatenate(TALLOC_CTX *mem_ctx, const struct security_acl *acl2) { struct security_acl *nacl; - int i; + uint32_t i; if (!acl1 && !acl2) return NULL; @@ -270,7 +270,7 @@ static NTSTATUS security_descriptor_acl_del(struct security_descriptor *sd, bool sacl_del, const struct dom_sid *trustee) { - int i; + uint32_t i; bool found = false; struct security_acl *acl = NULL; @@ -364,7 +364,7 @@ bool security_ace_equal(const struct security_ace *ace1, bool security_acl_equal(const struct security_acl *acl1, const struct security_acl *acl2) { - int i; + uint32_t i; if (acl1 == acl2) return true; if (!acl1 || !acl2) return false; |