Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No

functional change.

MFC after:	3 days
This commit is contained in:
dim 2015-01-30 22:02:32 +00:00
parent edbaff1357
commit 6b8eea4924

View File

@ -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