summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-02-09 07:45:46 +0000
committerdim <dim@FreeBSD.org>2015-02-09 07:45:46 +0000
commit7ddbf9a99c666e52d88410dd9c92a337714cd5dc (patch)
treecedb8c8e8b736a54304c200083cd2cd80489db56 /sys
parent9a363224b6827a8c1c737d23affa5d19b7f0cdab (diff)
downloadFreeBSD-src-7ddbf9a99c666e52d88410dd9c92a337714cd5dc.zip
FreeBSD-src-7ddbf9a99c666e52d88410dd9c92a337714cd5dc.tar.gz
MFC r277953:
Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No functional change.
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/smbfs/smbfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_subr.c b/sys/fs/smbfs/smbfs_subr.c
index aa03101..4e9f77d 100644
--- a/sys/fs/smbfs/smbfs_subr.c
+++ b/sys/fs/smbfs/smbfs_subr.c
@@ -170,8 +170,8 @@ smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt)
if (error) return error;
*/
- error = iconv_conv_case
- (vcp->vc_tolocal, (const char **)&ibuf, &ilen, &obuf, &olen, copt);
+ error = iconv_conv_case(vcp->vc_tolocal,
+ __DECONST(const char **, &ibuf), &ilen, &obuf, &olen, copt);
if (error && SMB_UNICODE_STRINGS(vcp)) {
/*
* If using unicode, leaving a file name as it was when
OpenPOWER on IntegriCloud