From: Volker Lendecke Date: Wed, 19 Sep 2018 10:36:25 +0000 (+0200) Subject: smbd: Make find_share_mode_lease() static X-Git-Tag: samba-4.11.0rc1~1292 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=b656ebf54afcd322cc7dcaa1a913a557027840fd smbd: Make find_share_mode_lease() static Signed-off-by: Volker Lendecke Reviewed-by: Christof Schmitt --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index a543ba3e037..9c242ddba35 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1971,9 +1971,9 @@ static bool file_has_brlocks(files_struct *fsp) return (brl_num_locks(br_lck) > 0); } -int find_share_mode_lease(struct share_mode_data *d, - const struct GUID *client_guid, - const struct smb2_lease_key *key) +static int find_share_mode_lease(struct share_mode_data *d, + const struct GUID *client_guid, + const struct smb2_lease_key *key) { uint32_t i; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e246645605b..a5c55c6ec50 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -691,9 +691,6 @@ void msg_file_was_renamed(struct messaging_context *msg, uint32_t msg_type, struct server_id server_id, DATA_BLOB *data); -int find_share_mode_lease(struct share_mode_data *d, - const struct GUID *client_guid, - const struct smb2_lease_key *key); struct share_mode_lease; NTSTATUS update_share_mode_lease_from_db( struct share_mode_data *d,