aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-30 22:02:32 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-30 22:02:32 +0000
commit7f4daa88f1b4be5a06ec08b1380ec1742f3555f9 (patch)
treec8f70f5bda7aecda35433b53a01d406a7bebc74e /sys/fs
parent38fc0aa4840b8bf7ef883ade274cd4d9daf9dd22 (diff)
downloadsrc-7f4daa88f1b4be5a06ec08b1380ec1742f3555f9.tar.gz
src-7f4daa88f1b4be5a06ec08b1380ec1742f3555f9.zip
Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No
functional change. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=277953
Diffstat (limited to 'sys/fs')
-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 aa03101f905e..4e9f77da4497 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