From: Ralph Wuerthner Date: Tue, 28 Jan 2020 14:40:46 +0000 (+0100) Subject: vfs_gpfs: Remove discard_const_p() from gpfs_putacl() calls X-Git-Tag: ldb-2.1.1~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea45cba9ee27e17182d440cd37e0c1cdf33b12f5;p=thirdparty%2Fsamba.git vfs_gpfs: Remove discard_const_p() from gpfs_putacl() calls Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index f76dcc015a6..dd2725973c5 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1325,8 +1325,9 @@ static int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle, return -1; } - result = gpfswrap_putacl(discard_const_p(char, smb_fname->base_name), - GPFS_PUTACL_STRUCT|GPFS_ACL_SAMBA, gpfs_acl); + result = gpfswrap_putacl(smb_fname->base_name, + GPFS_PUTACL_STRUCT|GPFS_ACL_SAMBA, + gpfs_acl); SAFE_FREE(gpfs_acl); return result;