svn commit: r278435 - in stable: 10/sys/fs/smbfs 9/sys/fs/smbfs
Dimitry Andric
dim at FreeBSD.org
Mon Feb 9 07:45:47 UTC 2015
Author: dim
Date: Mon Feb 9 07:45:46 2015
New Revision: 278435
URL: https://svnweb.freebsd.org/changeset/base/278435
Log:
MFC r277953:
Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No
functional change.
Modified:
stable/9/sys/fs/smbfs/smbfs_subr.c
Directory Properties:
stable/9/sys/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/10/sys/fs/smbfs/smbfs_subr.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/9/sys/fs/smbfs/smbfs_subr.c
==============================================================================
--- stable/9/sys/fs/smbfs/smbfs_subr.c Mon Feb 9 07:08:54 2015 (r278434)
+++ stable/9/sys/fs/smbfs/smbfs_subr.c Mon Feb 9 07:45:46 2015 (r278435)
@@ -202,8 +202,8 @@ smbfs_fname_tolocal(struct smb_vc *vcp,
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
More information about the svn-src-stable-9
mailing list