smbd: Make find_share_mode_entry() static to locking.c
authorVolker Lendecke <vl@samba.org>
Wed, 3 Jul 2019 09:25:41 +0000 (11:25 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 8 Jul 2019 16:22:37 +0000 (16:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/locking.c
source3/locking/proto.h

index e173034165c9f6f5a11576df2f87333587b05f0d..d87a882d14fb8f180aa89506254a976b91fcb67b 100644 (file)
@@ -834,7 +834,7 @@ bool set_share_mode(struct share_mode_lock *lck,
        return true;
 }
 
-struct share_mode_entry *find_share_mode_entry(
+static struct share_mode_entry *find_share_mode_entry(
        struct share_mode_lock *lck, files_struct *fsp)
 {
        struct share_mode_data *d = lck->data;
index 08d3f2c7ab8e88512fc3b3d74f4d08c38f1a65bf..3a086fa0516d94536f4d8b2afd1fe9663923529f 100644 (file)
@@ -162,8 +162,6 @@ bool set_share_mode(struct share_mode_lock *lck,
                    uint16_t op_type,
                    const struct GUID *client_guid,
                    const struct smb2_lease_key *lease_key);
-struct share_mode_entry *find_share_mode_entry(struct share_mode_lock *lck,
-                                              files_struct *fsp);
 void remove_stale_share_mode_entries(struct share_mode_data *d);
 bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp);
 bool mark_share_mode_disconnected(struct share_mode_lock *lck,