From: Ralph Wuerthner Date: Tue, 28 Jan 2020 14:42:03 +0000 (+0100) Subject: vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls X-Git-Tag: ldb-2.1.1~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be818b47b934449d4a40973e4b81654ee22490b;p=thirdparty%2Fsamba.git vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer Autobuild-User(master): Christof Schmitt Autobuild-Date(master): Mon Feb 3 21:53:05 UTC 2020 on sn-devel-184 --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index dd2725973c5..115459bd15d 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -2310,8 +2310,7 @@ static int get_gpfs_quota(const char *pathname, int type, int id, { int ret; - ret = gpfswrap_quotactl(discard_const_p(char, pathname), - GPFS_QCMD(Q_GETQUOTA, type), id, qi); + ret = gpfswrap_quotactl(pathname, GPFS_QCMD(Q_GETQUOTA, type), id, qi); if (ret) { if (errno == GPFS_E_NO_QUOTA_INST) {