svn commit: r277899 - head/sys/fs/cd9660
Dimitry Andric
dim at FreeBSD.org
Thu Jan 29 20:40:26 UTC 2015
Author: dim
Date: Thu Jan 29 20:40:25 2015
New Revision: 277899
URL: https://svnweb.freebsd.org/changeset/base/277899
Log:
Fix a bunch of -Wcast-qual warnings in cd9660_util.c, by using
__DECONST. No functional change.
MFC after: 3 days
Modified:
head/sys/fs/cd9660/cd9660_util.c
Modified: head/sys/fs/cd9660/cd9660_util.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_util.c Thu Jan 29 20:30:13 2015 (r277898)
+++ head/sys/fs/cd9660/cd9660_util.c Thu Jan 29 20:40:25 2015 (r277899)
@@ -80,7 +80,8 @@ isochar(isofn, isoend, joliet_level, c,
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, jolie
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);
More information about the svn-src-all
mailing list