smbcacls: Align integer types
[bbaumbach/samba-autobuild/.git] / source3 / utils / smbcacls.c
index b58a0f8cce15886c216f62af2b954d0b8592a307..6f04ddccd946c2074f492fe5a91b6f0529ae6b39 100644 (file)
@@ -664,7 +664,7 @@ static int inherit(struct cli_state *cli, const char *filename,
        if (strcmp(type,"allow")==0) {
                if ((old->type & SEC_DESC_DACL_PROTECTED) ==
                     SEC_DESC_DACL_PROTECTED) {
-                       int i;
+                       uint32_t i;
                        char *parentname,*temp;
                        struct security_descriptor *parent;
                        temp = talloc_strdup(talloc_tos(), filename);
@@ -734,7 +734,7 @@ static int inherit(struct cli_state *cli, const char *filename,
 
                        /* convert all inherited ACL's to non inherated ACL's. */
                        if (old->dacl) {
-                               int i;
+                               uint32_t i;
                                for (i=0;i<old->dacl->num_aces;i++) {
                                        struct security_ace *ace=&old->dacl->aces[i];
                                        /* Remove INHERITED FLAG from all aces */