summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-29 20:40:25 +0000
committerdim <dim@FreeBSD.org>2015-01-29 20:40:25 +0000
commitedba0c462e45f43509ec2bc3eea31b93bffd0c96 (patch)
tree73b449283e94c46be87b4f4995455e3f45d744fc
parent07f28f1df7815f81403f5d937040fa604d8b915c (diff)
downloadFreeBSD-src-edba0c462e45f43509ec2bc3eea31b93bffd0c96.zip
FreeBSD-src-edba0c462e45f43509ec2bc3eea31b93bffd0c96.tar.gz
Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using
__DECONST. No functional change. MFC after: 3 days
-rw-r--r--sys/fs/cd9660/cd9660_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_util.c b/sys/fs/cd9660/cd9660_util.c
index 5372c75..fdce1da 100644
--- a/sys/fs/cd9660/cd9660_util.c
+++ b/sys/fs/cd9660/cd9660_util.c
@@ -80,7 +80,8 @@ isochar(isofn, isoend, joliet_level, c, clen, flags, handle)
inbuf[2]='\0';
inp = inbuf;
outp = outbuf;
- cd9660_iconv->convchr(handle, (const char **)&inp, &i, &outp, &j);
+ cd9660_iconv->convchr(handle, __DECONST(const char **, &inp), &i,
+ &outp, &j);
len -= j;
if (clen) *clen = len;
*c = '\0';
@@ -121,7 +122,8 @@ isofncmp(fn, fnlen, isofn, isolen, joliet_level, flags, handle, lhandle)
u_char *fnend = fn + fnlen, *isoend = isofn + isolen;
for (; fn < fnend; ) {
- d = sgetrune(fn, fnend - fn, (char const **)&fn, flags, lhandle);
+ d = sgetrune(fn, fnend - fn, __DECONST(const char **, &fn),
+ flags, lhandle);
if (isofn == isoend)
return d;
isofn += isochar(isofn, isoend, joliet_level, &c, NULL, flags, handle);
OpenPOWER on IntegriCloud