Convert uint32/16/8 to _t in source3/libnet.
authorRichard Sharpe <rsharpe@samba.org>
Sun, 10 May 2015 02:58:40 +0000 (19:58 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 13 May 2015 17:11:23 +0000 (19:11 +0200)
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libnet/libnet_samsync_ldif.c
source3/libnet/libnet_samsync_passdb.c

index 2ea9c823283e596ad5b201be8180583da657d13e..d9ae4140dbebde00dc434e730db25b92e59a5a34 100644 (file)
@@ -33,8 +33,8 @@
 #ifdef HAVE_LDAP
 
 /* uid's and gid's for writing deltas to ldif */
-static uint32 ldif_gid = 999;
-static uint32 ldif_uid = 999;
+static uint32_t ldif_gid = 999;
+static uint32_t ldif_uid = 999;
 
 /* global counters */
 static uint32_t g_index = 0;
@@ -576,7 +576,7 @@ static NTSTATUS fetch_group_info_to_ldif(TALLOC_CTX *mem_ctx,
                                         const char *suffix)
 {
        const char *groupname = r->group_name.string;
-       uint32 grouptype = 0, g_rid = 0;
+       uint32_t grouptype = 0, g_rid = 0;
        char *group_attr = sstring_sub(lp_ldap_group_suffix(talloc_tos()), '=', ',');
 
        /* Set up the group type (always 2 for group info) */
@@ -649,7 +649,7 @@ static NTSTATUS fetch_account_info_to_ldif(TALLOC_CTX *mem_ctx,
        const char *ou;
        const char* nopasswd = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        uchar zero_buf[16];
-       uint32 rid = 0, group_rid = 0, gidNumber = 0;
+       uint32_t rid = 0, group_rid = 0, gidNumber = 0;
        time_t unix_time;
        int i, ret;
 
@@ -795,7 +795,7 @@ static NTSTATUS fetch_alias_info_to_ldif(TALLOC_CTX *mem_ctx,
                                         enum netr_SamDatabaseID database_id)
 {
        fstring aliasname, description;
-       uint32 grouptype = 0, g_rid = 0;
+       uint32_t grouptype = 0, g_rid = 0;
        char *group_attr = sstring_sub(lp_ldap_group_suffix(talloc_tos()), '=', ',');
 
        /* Get the alias name */
@@ -878,7 +878,7 @@ static NTSTATUS fetch_groupmem_info_to_ldif(struct netr_DELTA_GROUP_MEMBER *r,
                                            FILE *mod_fd, int alloced)
 {
        fstring group_dn;
-       uint32 group_rid = 0, rid = 0;
+       uint32_t group_rid = 0, rid = 0;
        int i, j, k;
 
        /* Get the dn for the group */
index 53e9a3230e28fc98dd36b9c300e8d165ddc396f2..cb057a97f252be5fbd4a2590ad6889b6748e4ce9 100644 (file)
@@ -714,15 +714,15 @@ static NTSTATUS fetch_domain_info(TALLOC_CTX *mem_ctx,
                return nt_status;
 
        if (!pdb_set_account_policy(PDB_POLICY_MAX_PASSWORD_AGE,
-                                   (uint32)u_max_age))
+                                   (uint32_t)u_max_age))
                return nt_status;
 
        if (!pdb_set_account_policy(PDB_POLICY_MIN_PASSWORD_AGE,
-                                   (uint32)u_min_age))
+                                   (uint32_t)u_min_age))
                return nt_status;
 
        if (!pdb_set_account_policy(PDB_POLICY_TIME_TO_LOGOUT,
-                                   (uint32)u_logout))
+                                   (uint32_t)u_logout))
                return nt_status;
 
        if (lockstr) {