From: Stefan Metzmacher Date: Mon, 21 Dec 2020 11:41:06 +0000 (+0100) Subject: s3:smbd: make fsp_free() static, it should only ever be called by file_free() X-Git-Tag: samba-4.14.0rc1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7dc9a84bb5c78235c4e77fde2b8297e9c8206862;p=thirdparty%2Fsamba.git s3:smbd: make fsp_free() static, it should only ever be called by file_free() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index bb61fd49c9c..f151b01d83a 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 879ec71ae94..3c9815fa6db 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,