Convert all uint32/16/8 to _t in source3/libsmb.
[bbaumbach/samba-autobuild/.git] / source3 / libsmb / libsmb_xattr.c
index 9f7bea8da11b0e6c5d64ad80d6920a57b2e8ec17..8c23a8f87a6987c6809419c3e7e40376a23695da 100644 (file)
@@ -146,7 +146,7 @@ ace_compare(struct security_ace *ace1,
 static void
 sort_acl(struct security_acl *the_acl)
 {
-       uint32 i;
+       uint32_t i;
        if (!the_acl) return;
 
        TYPESAFE_QSORT(the_acl->aces, the_acl->num_aces, ace_compare);
@@ -272,7 +272,7 @@ parse_ace(struct cli_state *ipc_cli,
        const struct perm_value *v;
         struct perm_value {
                 const char perm[7];
-                uint32 mask;
+                uint32_t mask;
         };
        TALLOC_CTX *frame = talloc_stackframe();
 
@@ -558,7 +558,7 @@ dos_attr_query(SMBCCTX *context,
         struct timespec access_time_ts;
         struct timespec change_time_ts;
         off_t size = 0;
-        uint16 mode = 0;
+        uint16_t mode = 0;
        SMB_INO_T inode = 0;
         DOS_ATTR_DESC *ret;
 
@@ -708,7 +708,7 @@ cacl_get(SMBCCTX *context,
          char *buf,
          int bufsize)
 {
-       uint32 i;
+       uint32_t i;
         int n = 0;
         int n_used;
         bool all;
@@ -746,7 +746,7 @@ cacl_get(SMBCCTX *context,
         time_t access_time = (time_t)0;
         time_t change_time = (time_t)0;
        off_t size = 0;
-       uint16 mode = 0;
+       uint16_t mode = 0;
        SMB_INO_T ino = 0;
        struct cli_state *cli = srv->cli;
         struct {
@@ -1515,7 +1515,7 @@ cacl_set(SMBCCTX *context,
         struct security_acl *dacl = NULL;
        struct dom_sid *owner_sid = NULL;
        struct dom_sid *group_sid = NULL;
-       uint32 i, j;
+       uint32_t i, j;
        size_t sd_size;
        int ret = 0;
         char *p;
@@ -1595,7 +1595,7 @@ cacl_set(SMBCCTX *context,
                        for (j=0;old->dacl && j<old->dacl->num_aces;j++) {
                                 if (security_ace_equal(&sd->dacl->aces[i],
                                                       &old->dacl->aces[j])) {
-                                       uint32 k;
+                                       uint32_t k;
                                        for (k=j; k<old->dacl->num_aces-1;k++) {
                                                old->dacl->aces[k] =
                                                         old->dacl->aces[k+1];