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
38fc0aa484
commit
7f4daa88f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277953
@ -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…
Reference in New Issue
Block a user