svn commit: r277953 - head/sys/fs/smbfs

Dimitry Andric dim at FreeBSD.org
Fri Jan 30 22:02:33 UTC 2015


Author: dim
Date: Fri Jan 30 22:02:32 2015
New Revision: 277953
URL: https://svnweb.freebsd.org/changeset/base/277953

Log:
  Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST.  No
  functional change.
  
  MFC after:	3 days

Modified:
  head/sys/fs/smbfs/smbfs_subr.c

Modified: head/sys/fs/smbfs/smbfs_subr.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_subr.c	Fri Jan 30 22:01:45 2015	(r277952)
+++ head/sys/fs/smbfs/smbfs_subr.c	Fri Jan 30 22:02:32 2015	(r277953)
@@ -170,8 +170,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-all mailing list