1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277952

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