Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST. No
functional change. MFC after: 3 days
This commit is contained in:
parent
1bb25a82ab
commit
38fc0aa484
@ -526,8 +526,9 @@ udf_transname(char *cs0string, char *destname, int len, struct udf_mnt *udfmp)
|
||||
}
|
||||
|
||||
while (unilen > 0 && destleft > 0) {
|
||||
udf_iconv->conv(udfmp->im_d2l, (const char **)&unibuf,
|
||||
(size_t *)&unilen, (char **)&destname, &destleft);
|
||||
udf_iconv->conv(udfmp->im_d2l, __DECONST(const char **,
|
||||
&unibuf), (size_t *)&unilen, (char **)&destname,
|
||||
&destleft);
|
||||
/* Unconverted character found */
|
||||
if (unilen > 0 && destleft > 0) {
|
||||
*destname++ = '?';
|
||||
|
Loading…
Reference in New Issue
Block a user