]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make fsp_set_gen_id() static
authorVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 13:50:56 +0000 (15:50 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 17 Nov 2025 08:33:11 +0000 (08:33 +0000)
Only called from files.c

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/files.c
source3/smbd/proto.h

index cc6ae87fa5c662a5b835ae215cc320636819816b..b0530daf155c711554edb716ffab442d7e0bc98c 100644 (file)
@@ -88,7 +88,7 @@ fail:
        return NULL;
 }
 
-void fsp_set_gen_id(files_struct *fsp)
+static void fsp_set_gen_id(files_struct *fsp)
 {
        static uint64_t gen_id = UINT32_MAX;
 
index cd1a9e08906df28677f0195dc3aaf9a56ee9545e..6a7a524cfc51c68b1a2c411d00be71f0b00f2a5e 100644 (file)
@@ -317,7 +317,6 @@ NTSTATUS get_real_filename_at(struct files_struct *dirfsp,
 
 struct files_struct *fsp_new(TALLOC_CTX *mem_ctx,
                             struct connection_struct *conn);
-void fsp_set_gen_id(files_struct *fsp);
 NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
                  files_struct **result);
 NTSTATUS fsp_bind_smb(struct files_struct *fsp, struct smb_request *req);