summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-25 18:39:27 -0700
committerJeremy Allison <jra@samba.org>2013-10-08 14:42:02 -0700
commitf9554a993ecb345b8773a911a6e98a7f2329422b (patch)
tree7f98c2c8aa72923319c7b5d35fa7690be83e22d7 /source3/locking
parent2ad37cbd0ef7ae89d4ecc049b74fef2c4c7da02c (diff)
downloadsamba-f9554a993ecb345b8773a911a6e98a7f2329422b.tar.gz
samba-f9554a993ecb345b8773a911a6e98a7f2329422b.tar.bz2
samba-f9554a993ecb345b8773a911a6e98a7f2329422b.zip
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c2
-rw-r--r--source3/locking/proto.h2
2 files changed, 2 insertions, 2 deletions
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);