summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-08-15 11:59:11 +0200
committerJeremy Allison <jra@samba.org>2019-09-17 22:49:36 +0000
commit735439765a29b0b31e530998e0d46b11c298c50b (patch)
tree9d620fed165750741db22fda8aa433400e64fec4 /source3/locking
parent41393a648899ab2ce61c69e673240e9821735c06 (diff)
downloadsamba-735439765a29b0b31e530998e0d46b11c298c50b.tar.gz
smbd: Make lease_type_is_exclusive() static
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/leases_util.c2
-rw-r--r--source3/locking/proto.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/source3/locking/leases_util.c b/source3/locking/leases_util.c
index f10c91f0d32..da094069941 100644
--- a/source3/locking/leases_util.c
+++ b/source3/locking/leases_util.c
@@ -55,7 +55,7 @@ uint32_t fsp_lease_type(const struct files_struct *fsp)
return map_oplock_to_lease_type(fsp->oplock_type);
}
-uint32_t lease_type_is_exclusive(uint32_t lease_type)
+static uint32_t lease_type_is_exclusive(uint32_t lease_type)
{
if ((lease_type & (SMB2_LEASE_READ | SMB2_LEASE_WRITE)) ==
(SMB2_LEASE_READ | SMB2_LEASE_WRITE)) {
diff --git a/source3/locking/proto.h b/source3/locking/proto.h
index bc53edaec12..9094cc02651 100644
--- a/source3/locking/proto.h
+++ b/source3/locking/proto.h
@@ -264,7 +264,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(const struct files_struct *fsp);
-uint32_t lease_type_is_exclusive(uint32_t lease_type);
bool fsp_lease_type_is_exclusive(const struct files_struct *fsp);
const struct GUID *fsp_client_guid(const files_struct *fsp);