vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 14:33:47 +0000 (15:33 +0100)
committerChristof Schmitt <cs@samba.org>
Mon, 3 Feb 2020 20:27:37 +0000 (20:27 +0000)
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/modules/vfs_gpfs.c

index 1c843db503d263d59ccf079565dcc6107845e490..f76dcc015a6403a4ab4377c9f7e811b5307c3797 100644 (file)
@@ -417,7 +417,7 @@ static int gpfs_getacl_with_capability(const char *fname, int flags, void *buf)
 
        set_effective_capability(DAC_OVERRIDE_CAPABILITY);
 
-       ret = gpfswrap_getacl(discard_const_p(char, fname), flags, buf);
+       ret = gpfswrap_getacl(fname, flags, buf);
        saved_errno = errno;
 
        drop_effective_capability(DAC_OVERRIDE_CAPABILITY);
@@ -478,8 +478,7 @@ again:
        if (use_capability) {
                ret = gpfs_getacl_with_capability(fname, flags, aclbuf);
        } else {
-               ret = gpfswrap_getacl(discard_const_p(char, fname),
-                                     flags, aclbuf);
+               ret = gpfswrap_getacl(fname, flags, aclbuf);
                if ((ret != 0) && (errno == EACCES)) {
                        DBG_DEBUG("Retry with DAC capability for %s\n", fname);
                        use_capability = true;