From 508ae8ee7a25eb39a3b5788f0b90cc1e91629e6b Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Tue, 28 Jan 2020 15:33:47 +0100 Subject: vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- source3/modules/vfs_gpfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 1c843db503d..f76dcc015a6 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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; -- cgit v1.2.1