Convert the few instances of int32 there were to int32_t.
authorRichard Sharpe <rsharpe@nutanix.com>
Fri, 15 May 2015 21:56:25 +0000 (14:56 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 16 May 2015 01:09:12 +0000 (03:09 +0200)
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat May 16 03:09:12 CEST 2015 on sn-devel-104

source3/lib/sharesec.c
source3/passdb/pdb_tdb.c
source3/printing/printing.c
source3/smbd/lanman.c
source3/smbd/reply.c
source3/smbd/trans2.c
source3/utils/log2pcaphex.c
source3/winbindd/idmap_tdb.c
source3/winbindd/winbindd_cache.c

index 9d7787ef4cee35612505ff5ed37c6e535f9c72a5..dbe5de7a17bcd0fff6779e6aab13b125e1cf200f 100644 (file)
@@ -139,7 +139,7 @@ static int upgrade_v2_to_v3(struct db_record *rec, void *priv)
 bool share_info_db_init(void)
 {
        const char *vstring = "INFO/version";
-       int32 vers_id = 0;
+       int32_t vers_id = 0;
        bool upgrade_ok = true;
        NTSTATUS status;
        char *db_path;
index a32f1e318829ea0370333782305b67b456f61818..2e97ba46244b671c4d2e65daea81c875980d03e5 100644 (file)
@@ -362,7 +362,7 @@ static bool tdbsam_upgrade_next_rid(struct db_context *db)
        return true;
 }
 
-static bool tdbsam_convert(struct db_context **pp_db, const char *name, int32 from)
+static bool tdbsam_convert(struct db_context **pp_db, const char *name, int32_t from)
 {
        struct tdbsam_convert_state state;
        struct db_context *db = NULL;
@@ -437,8 +437,8 @@ static bool tdbsam_convert(struct db_context **pp_db, const char *name, int32 fr
 
 static bool tdbsam_open( const char *name )
 {
-       int32   version;
-       int32   minor_version;
+       int32_t version;
+       int32_t minor_version;
        NTSTATUS status;
 
        /* check if we are already open */
index 0328e744ca524ad3d7eb0f344fcb578787162245..4a2ffd17ca720c78aa0534d5b35324669198bbd4 100644 (file)
@@ -1545,7 +1545,7 @@ static void print_queue_update_internal(struct tevent_context *ev,
         */
 
        slprintf(keystr, sizeof(keystr)-1, "CACHE/%s", sharename);
-       tdb_store_int32(pdb->tdb, keystr, (int32)time(NULL));
+       tdb_store_int32(pdb->tdb, keystr, (int32_t)time(NULL));
 
        /* clear the msg pending record for this queue */
 
index e444a6e886737511df763df80417e7a48973c57a..53e2724805c35e073e58de106f139965b5c5db9d 100644 (file)
@@ -307,7 +307,7 @@ static int package(struct pack_desc *p, ...)
        int needed=0, stringneeded;
        const char *str=NULL;
        int is_string=0, stringused;
-       int32 temp;
+       int32_t temp;
 
        va_start(args,p);
 
index 6bda633558ea80fee1ab6c00ff7de204086003ba..b1b91e1d025d6eaad86c5097e345c7464809a3c3 100644 (file)
@@ -7999,7 +7999,7 @@ void reply_lockingX(struct smb_request *req)
        unsigned char oplocklevel;
        uint16_t num_ulocks;
        uint16_t num_locks;
-       int32 lock_timeout;
+       int32_t lock_timeout;
        int i;
        const uint8_t *data;
        bool large_file_format;
index 7dcbe89fcc79b8e7c9c1a26a1f7284812743053f..6c77e85f20e8ee6ae110b8022bb6260b0799035a 100644 (file)
@@ -1068,7 +1068,7 @@ static void call_trans2open(connection_struct *conn,
        char *params = *pparams;
        char *pdata = *ppdata;
        int deny_mode;
-       int32 open_attr;
+       int32_t open_attr;
        bool oplock_request;
 #if 0
        bool return_additional_info;
index d565a24e606888591aeb05062686f6798515c126..23526c2bc01cc1c911b32500763dcfb08c23055e 100644 (file)
@@ -77,7 +77,7 @@ struct tcpdump_file_header {
        uint32_t magic;
        uint16_t major;
        uint16_t minor;
-       int32 zone;
+       int32_t zone;
        uint32_t sigfigs;
        uint32_t snaplen;
        uint32_t linktype;
index d9a30228dfe41f17031c64efa52bc825574fa4f2..a04295f3abbf57d09b78050b9d283d8e1508473b 100644 (file)
@@ -145,7 +145,7 @@ static int convert_fn(struct db_record *rec, void *private_data)
 
 static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
 {
-       int32 vers;
+       int32_t vers;
        struct convert_fn_state s;
        NTSTATUS status;
 
@@ -161,7 +161,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
                 * big endian machine and will need byte-reversing.
                 */
 
-               int32 wm;
+               int32_t wm;
 
                status = dbwrap_fetch_int32_bystring(db, HWM_USER, &wm);
                if (!NT_STATUS_IS_OK(status)) {
index 9f6a390331f17413944a07e610006ace676a99b4..4e270ca4dbca6e5826ebc79a9cbaac8f4f1e4fba 100644 (file)
@@ -3808,13 +3808,13 @@ static int validate_ul(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
                       struct tdb_validation_status *state)
 {
        struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
-       int32 num_entries, i;
+       int32_t num_entries, i;
 
        if (!centry) {
                return 1;
        }
 
-       num_entries = (int32)centry_uint32(centry);
+       num_entries = (int32_t)centry_uint32(centry);
 
        for (i=0; i< num_entries; i++) {
                struct dom_sid sid;
@@ -3839,7 +3839,7 @@ static int validate_gl(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
                       struct tdb_validation_status *state)
 {
        struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
-       int32 num_entries, i;
+       int32_t num_entries, i;
 
        if (!centry) {
                return 1;
@@ -3866,7 +3866,7 @@ static int validate_ug(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
                       struct tdb_validation_status *state)
 {
        struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
-       int32 num_groups, i;
+       int32_t num_groups, i;
 
        if (!centry) {
                return 1;
@@ -3892,7 +3892,7 @@ static int validate_ua(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
                       struct tdb_validation_status *state)
 {
        struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
-       int32 num_aliases, i;
+       int32_t num_aliases, i;
 
        if (!centry) {
                return 1;
@@ -3917,7 +3917,7 @@ static int validate_gm(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
                       struct tdb_validation_status *state)
 {
        struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
-       int32 num_names, i;
+       int32_t num_names, i;
 
        if (!centry) {
                return 1;