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,
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to