Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2015 10:21:21 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r281927 - head/lib/libc/locale
Message-ID:  <201504241021.t3OALLsi094610@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504241021.t3OALLsi094610>