summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorRichard Sharpe <rsharpe@samba.org>2015-05-09 16:14:39 -0700
committerJeremy Allison <jra@samba.org>2015-05-13 19:11:23 +0200
commitc833baa24cb87471a23b703a7576b8584129ed79 (patch)
tree167cedadf20900f7da69dbca334a83e4079fce7b /source3/locking
parent9432e2032752f4e78b1bd9354f48a3c9affbed94 (diff)
downloadsamba-c833baa24cb87471a23b703a7576b8584129ed79.tar.gz
Convert all uint32/16/8 to _t in source3/locking.
Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c6
-rw-r--r--source3/locking/locking.c4
-rw-r--r--source3/locking/posix.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 0738464163a..05e7ee29b14 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -1976,7 +1976,7 @@ struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, files_struct *fsp)
br_lck->fsp = fsp;
- key.dptr = (uint8 *)&fsp->file_id;
+ key.dptr = (uint8_t *)&fsp->file_id;
key.dsize = sizeof(struct file_id);
br_lck->record = dbwrap_fetch_locked(brlock_db, br_lck, key);
@@ -2115,7 +2115,7 @@ struct byte_range_lock *brl_get_locks_readonly(files_struct *fsp)
struct brl_revalidate_state {
ssize_t array_size;
- uint32 num_pids;
+ uint32_t num_pids;
struct server_id *pids;
};
@@ -2171,7 +2171,7 @@ void brl_revalidate(struct messaging_context *msg_ctx,
DATA_BLOB *data)
{
struct brl_revalidate_state *state;
- uint32 i;
+ uint32_t i;
struct server_id last_pid;
if (!(state = talloc_zero(NULL, struct brl_revalidate_state))) {
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 67eff8f0ee0..9dce85a1a54 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -567,7 +567,7 @@ bool rename_share_filename(struct messaging_context *msg_ctx,
has_stream ? d->stream_name : ""));
messaging_send_buf(msg_ctx, se->pid, MSG_SMB_FILE_RENAME,
- (uint8 *)frm, msg_len);
+ (uint8_t *)frm, msg_len);
}
for (i=0; i<d->num_leases; i++) {
@@ -846,7 +846,7 @@ bool set_share_mode(struct share_mode_lock *lck, struct files_struct *fsp,
e->time.tv_usec = fsp->open_time.tv_usec;
e->id = fsp->file_id;
e->share_file_id = fsp->fh->gen_id;
- e->uid = (uint32)uid;
+ e->uid = (uint32_t)uid;
e->flags = fsp->posix_open ? SHARE_MODE_FLAG_POSIX_OPEN : 0;
e->name_hash = fsp->name_hash;
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index a0966ab6cd1..ea42159de48 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -361,7 +361,7 @@ static TDB_DATA locking_ref_count_key_fsp(files_struct *fsp,
static TDB_DATA fd_array_key_fsp(files_struct *fsp)
{
- return make_tdb_data((uint8 *)&fsp->file_id, sizeof(fsp->file_id));
+ return make_tdb_data((uint8_t *)&fsp->file_id, sizeof(fsp->file_id));
}
/*******************************************************************