aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/udf
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-30 22:01:45 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-30 22:01:45 +0000
commit38fc0aa4840b8bf7ef883ade274cd4d9daf9dd22 (patch)
tree4333e79e31c529a76f2031593b676913d61b179a /sys/fs/udf
parent1bb25a82ab860aa71821b3f3e78661525637eec0 (diff)
downloadsrc-38fc0aa4840b8bf7ef883ade274cd4d9daf9dd22.tar.gz
src-38fc0aa4840b8bf7ef883ade274cd4d9daf9dd22.zip
Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST. No
functional change. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=277952
Diffstat (limited to 'sys/fs/udf')
-rw-r--r--sys/fs/udf/udf_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index abe073e8e36a..8e0d25e18adb 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -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++ = '?';