svn commit: r281927 - head/lib/libc/locale

David Chisnall theraven at FreeBSD.org
Fri Apr 24 10:21:21 UTC 2015


Author: theraven
Date: Fri Apr 24 10:21:20 2015
New Revision: 281927
URL: https://svnweb.freebsd.org/changeset/base/281927

Log:
  __xlocale_C_ctype should not be const.  It contains a reference count that is modified by newlocale / duplocale / freelocale.
  
  MFC after:	1 week

Modified:
  head/lib/libc/locale/none.c

Modified: head/lib/libc/locale/none.c
==============================================================================
--- head/lib/libc/locale/none.c	Fri Apr 24 10:18:41 2015	(r281926)
+++ head/lib/libc/locale/none.c	Fri Apr 24 10:21:20 2015	(r281927)
@@ -209,7 +209,7 @@ struct xlocale_ctype __xlocale_global_ct
 	256 /* __mb_sb_limit */
 };
 
-const struct xlocale_ctype __xlocale_C_ctype = {
+struct xlocale_ctype __xlocale_C_ctype = {
 	{{0}, "C"},
 	(_RuneLocale*)&_DefaultRuneLocale,
 	_none_mbrtowc,


More information about the svn-src-all mailing list