mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 23:28:37 -04: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:
parent
1bb25a82ab
commit
38fc0aa484
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue