1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s3/locking: add const to fsp_lease_type

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12766

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2017-05-04 11:50:01 +02:00
parent 9703464b94
commit 952701dce0
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ uint32_t map_oplock_to_lease_type(uint16_t op_type)
return ret;
}
uint32_t fsp_lease_type(struct files_struct *fsp)
uint32_t fsp_lease_type(const struct files_struct *fsp)
{
if (fsp->oplock_type == LEASE_OPLOCK) {
return fsp->lease->lease.lease_state;

View File

@ -257,6 +257,6 @@ bool release_posix_lock_posix_flavour(files_struct *fsp,
/* The following definitions come from locking/leases_util.c */
uint32_t map_oplock_to_lease_type(uint16_t op_type);
uint32_t fsp_lease_type(struct files_struct *fsp);
uint32_t fsp_lease_type(const struct files_struct *fsp);
#endif /* _LOCKING_PROTO_H_ */