From: Anoop C S Date: Fri, 19 Aug 2022 06:28:34 +0000 (+0530) Subject: vfs_glusterfs: Accept fsp with const qualifier X-Git-Tag: talloc-2.4.0~1293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f51fa9c07e194bcc3c4f39a1bfc2e01139c917b;p=thirdparty%2Fsamba.git 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 --- 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) {