]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: make fsp arg of vfs_[memctx|fetch]_fsp_extension const
authorRalph Boehme <slow@samba.org>
Wed, 20 Jan 2021 13:47:19 +0000 (14:47 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 28 Jan 2021 08:11:49 +0000 (08:11 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/vfs.h
source3/smbd/vfs.c

index 49726618c5ca14c6dde5aa765e0af5d129010876..eb005bdc86ac8d1f42cc45a6a2dd08647278ad6e 100644 (file)
@@ -1823,8 +1823,9 @@ void *vfs_add_fsp_extension_notype(vfs_handle_struct *handle,
                                   void (*destroy_fn)(void *p_data));
 void vfs_remove_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
 void vfs_remove_all_fsp_extensions(struct files_struct *fsp);
-void *vfs_memctx_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
-void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
+void *vfs_memctx_fsp_extension(vfs_handle_struct *handle,
+                              const struct files_struct *fsp);
+void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, const struct files_struct *fsp);
 
 void smb_vfs_assert_all_fns(const struct vfs_fn_pointers* fns,
                            const char *module);
index 26446c3505ab07fce914e42679a018137f0366fd..1f52a7213a132cb8f4dd75d0f4c4089c19b816ac 100644 (file)
@@ -291,7 +291,8 @@ void vfs_remove_all_fsp_extensions(files_struct *fsp)
        }
 }
 
-void *vfs_memctx_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
+void *vfs_memctx_fsp_extension(vfs_handle_struct *handle,
+                              const struct files_struct *fsp)
 {
        struct vfs_fsp_data *head;
 
@@ -304,7 +305,8 @@ void *vfs_memctx_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
        return NULL;
 }
 
-void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
+void *vfs_fetch_fsp_extension(vfs_handle_struct *handle,
+                             const struct files_struct *fsp)
 {
        struct vfs_fsp_data *head;