svn commit: r278141 - in stable: 10/sys/fs/udf 9/sys/fs/udf

Dimitry Andric dim at FreeBSD.org
Tue Feb 3 08:03:20 UTC 2015


Author: dim
Date: Tue Feb  3 08:03:19 2015
New Revision: 278141
URL: https://svnweb.freebsd.org/changeset/base/278141

Log:
  MFC r277952:
  
  Fix a -Wcast-qual warning in udf_vnops.c, by using __DECONST.  No
  functional change.

Modified:
  stable/9/sys/fs/udf/udf_vnops.c
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/fs/udf/udf_vnops.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/sys/fs/udf/udf_vnops.c
==============================================================================
--- stable/9/sys/fs/udf/udf_vnops.c	Tue Feb  3 07:59:33 2015	(r278140)
+++ stable/9/sys/fs/udf/udf_vnops.c	Tue Feb  3 08:03:19 2015	(r278141)
@@ -527,8 +527,9 @@ udf_transname(char *cs0string, char *des
 		}
 
 		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++ = '?';


More information about the svn-src-stable-9 mailing list