From: Volker Lendecke Date: Thu, 23 Oct 2025 17:22:03 +0000 (+0200) Subject: smbd: Make file_name_hash() static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e93c5615027be1b5f9f7290c4fdd5dd3c535841e;p=thirdparty%2Fsamba.git smbd: Make file_name_hash() static Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 03118efbb1d..11609522fb7 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -2577,8 +2577,9 @@ struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req, * Return a jenkins hash of a pathname on a connection. */ -NTSTATUS file_name_hash(connection_struct *conn, - const char *name, uint32_t *p_name_hash) +static NTSTATUS file_name_hash(connection_struct *conn, + const char *name, + uint32_t *p_name_hash) { char tmpbuf[PATH_MAX]; char *fullpath, *to_free; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index bd4b9d5116e..6af2dd3a1db 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -351,8 +351,6 @@ struct files_struct *file_fsp_get(struct smbd_smb2_request *smb2req, struct files_struct *file_fsp_smb2(struct smbd_smb2_request *smb2req, uint64_t persistent_id, uint64_t volatile_id); -NTSTATUS file_name_hash(connection_struct *conn, - const char *name, uint32_t *p_name_hash); NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, const struct smb_filename *smb_fname_in); size_t fsp_fullbasepath(struct files_struct *fsp, char *buf, size_t buflen);