duplocale: Tweak.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Dec 2009 17:27:59 +0000 (18:27 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 12 Dec 2009 17:28:35 +0000 (18:28 +0100)
ChangeLog
lib/duplocale.c

index 81fc88c..4b32238 100644 (file)
--- 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.
index 680eeb1..356a1b0 100644 (file)
@@ -37,7 +37,7 @@ rpl_duplocale (locale_t locale)
     {
       /* 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 },