smbd: Make find_share_mode_lease() static
authorVolker Lendecke <vl@samba.org>
Wed, 19 Sep 2018 10:36:25 +0000 (12:36 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:32 +0000 (04:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/smbd/open.c
source3/smbd/proto.h

index a543ba3e03796090444fcf716cf0375e6fa975c9..9c242ddba35b42cc6db6ccb2a9b166c2fa2aacfc 100644 (file)
@@ -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;
 
index e246645605b858a77678142c6306beb45853a4c5..a5c55c6ec502069d1144dd823c73fc394bcba048 100644 (file)
@@ -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,