From 5f51fa9c07e194bcc3c4f39a1bfc2e01139c917b Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Fri, 19 Aug 2022 11:58:34 +0530 Subject: [PATCH] vfs_glusterfs: Accept fsp with const qualifier This is in preparation to avoid any `const` qualifier being discarded warning with future changes to various *_at() calls which has `const file_struct` arguments. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15157 Signed-off-by: Anoop C S Reviewed-by: Jeremy Allison --- source3/modules/vfs_glusterfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index dd05da0f9bb..92fc0a80e9f 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -606,7 +606,7 @@ static uint32_t vfs_gluster_fs_capabilities(struct vfs_handle_struct *handle, } static glfs_fd_t *vfs_gluster_fetch_glfd(struct vfs_handle_struct *handle, - files_struct *fsp) + const files_struct *fsp) { glfs_fd_t **glfd = (glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle, fsp); if (glfd == NULL) { -- 2.47.3