]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_glusterfs: Accept fsp with const qualifier
authorAnoop C S <anoopcs@samba.org>
Fri, 19 Aug 2022 06:28:34 +0000 (11:58 +0530)
committerJeremy Allison <jra@samba.org>
Fri, 26 Aug 2022 16:31:37 +0000 (16:31 +0000)
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 <anoopcs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_glusterfs.c

index dd05da0f9bb9f5edbc36414ea4df98e9122192ad..92fc0a80e9f9b394880c9916651a52c7677ab484 100644 (file)
@@ -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) {