changeset 12440:7845453bc803

duplocale: Tweak.
author Bruno Haible <bruno@clisp.org>
date Sat, 12 Dec 2009 18:27:59 +0100
parents 29670982b798
children ab69336c0252
files ChangeLog lib/duplocale.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-12  Bruno Haible  <bruno@clisp.org>
+
+	duplocale: Tweak.
+	* lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
+
 2009-12-12  Karl Berry  <karl@gnu.org>
 
 	* config/srclist.txt (strtoll.c): tab changes, no more sync.
--- a/lib/duplocale.c
+++ b/lib/duplocale.c
@@ -37,7 +37,7 @@
     {
       /* Create a copy of the locale by fetching the name of each locale
          category, starting with LC_CTYPE.  */
-      static struct { int cat; int mask; } categories[] =
+      static struct { int cat; int mask; } const categories[] =
         {
             { LC_NUMERIC,        LC_NUMERIC_MASK },
             { LC_TIME,           LC_TIME_MASK },