We're going to add a call to share_entry_stale_pid(share_mode_entry) which takes
a non-const pointer (in order to eventually set e->state = true).
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14428
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(backported from commit
3f4a865821da27efbed4f7c38ad3efbcaae77a02)
[slow@samba.org: get_lease_type() takes arg d in 4.11]
TALLOC_FREE(fsp->oplock_timeout);
}
-uint32_t get_lease_type(const struct share_mode_data *d,
- const struct share_mode_entry *e)
+uint32_t get_lease_type(struct share_mode_data *d,
+ struct share_mode_entry *e)
{
NTSTATUS status;
uint32_t current_state;
/* The following definitions come from smbd/oplock.c */
-uint32_t get_lease_type(const struct share_mode_data *d,
- const struct share_mode_entry *e);
+uint32_t get_lease_type(struct share_mode_data *d,
+ struct share_mode_entry *e);
void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp);
NTSTATUS set_file_oplock(files_struct *fsp);