Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No
functional change. MFC after: 3 days
This commit is contained in:
parent
edbaff1357
commit
6b8eea4924
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user