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 a543ba3..9c242dd 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 e246645..a5c55c6 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,