smbd: Change parameter from unsigned to uint32_t
authorVolker Lendecke <vl@samba.org>
Thu, 26 Sep 2013 01:39:27 +0000 (18:39 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 8 Oct 2013 21:42:02 +0000 (14:42 -0700)
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>
source3/locking/locking.c
source3/locking/proto.h

index d0b6eaf995c3bc96f74f8aa90524927a747d96b4..d701964229d00f6c990d65e2ea23a00e87bb7a14 100644 (file)
@@ -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;
 
index 1573f6b306d3036092c743c34fd564c7aa073d96..dde0be431d1611050efe1e4c043adf74da428a51 100644 (file)
@@ -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);