]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: make fsp_free() static, it should only ever be called by file_free()
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Dec 2020 11:41:06 +0000 (12:41 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (11:30 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/files.c
source3/smbd/proto.h

index bb61fd49c9cd7c31757e965fa6dcc04173600d5a..f151b01d83a6bb5a248f9c548fa888c1e086a2d3 100644 (file)
@@ -915,7 +915,7 @@ bool file_find_subpath(files_struct *dir_fsp)
  Free up a fsp.
 ****************************************************************************/
 
-void fsp_free(files_struct *fsp)
+static void fsp_free(files_struct *fsp)
 {
        struct smbd_server_connection *sconn = fsp->conn->sconn;
 
index 879ec71ae943258fa2cdc8bdd5809907881a4340..3c9815fa6db25cb2e3620c5c12c7c6a2254c5c47 100644 (file)
@@ -427,7 +427,6 @@ struct files_struct *file_find_one_fsp_from_lease_key(
        struct smbd_server_connection *sconn,
        const struct smb2_lease_key *lease_key);
 bool file_find_subpath(files_struct *dir_fsp);
-void fsp_free(files_struct *fsp);
 void file_free(struct smb_request *req, files_struct *fsp);
 files_struct *file_fsp(struct smb_request *req, uint16_t fid);
 struct files_struct *file_fsp_get(struct smbd_smb2_request *smb2req,