From f9554a993ecb345b8773a911a6e98a7f2329422b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 25 Sep 2013 18:39:27 -0700 Subject: smbd: Change parameter from unsigned to uint32_t share_mode_stale_pid internally only has to deal with uint32_t. Make the parameter match this. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/locking.c | 2 +- source3/locking/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/locking') diff --git a/source3/locking/locking.c b/source3/locking/locking.c index d0b6eaf995..d701964229 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -636,7 +636,7 @@ bool is_valid_share_mode_entry(const struct share_mode_entry *e) * being used, we need to make sure the corresponding process still * exists. */ -bool share_mode_stale_pid(struct share_mode_data *d, unsigned idx) +bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx) { struct share_mode_entry *e; diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 1573f6b306..dde0be431d 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -170,7 +170,7 @@ void get_file_infos(struct file_id id, bool *delete_on_close, struct timespec *write_time); bool is_valid_share_mode_entry(const struct share_mode_entry *e); -bool share_mode_stale_pid(struct share_mode_data *d, unsigned idx); +bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx); void set_share_mode(struct share_mode_lock *lck, files_struct *fsp, uid_t uid, uint64_t mid, uint16 op_type); bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp); -- cgit