Date: Thu, 29 Jan 2015 20:40:26 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r277899 - head/sys/fs/cd9660 Message-ID: <201501292040.t0TKeQrc026065@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501292040.t0TKeQrc026065>