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

functional change.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2015-01-30 22:01:45 +00:00
parent 1bb25a82ab
commit 38fc0aa484

View File

@ -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++ = '?';