From owner-svn-src-all@FreeBSD.ORG Fri Apr 24 10:21:21 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E191848; Fri, 24 Apr 2015 10:21:21 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B7EE153B; Fri, 24 Apr 2015 10:21:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3OALLSU094611; Fri, 24 Apr 2015 10:21:21 GMT (envelope-from theraven@FreeBSD.org) Received: (from theraven@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3OALLsi094610; Fri, 24 Apr 2015 10:21:21 GMT (envelope-from theraven@FreeBSD.org) Message-Id: <201504241021.t3OALLsi094610@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: theraven set sender to theraven@FreeBSD.org using -f From: David Chisnall Date: Fri, 24 Apr 2015 10:21:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281927 - head/lib/libc/locale X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2015 10:21:21 -0000 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,