From e7a495839cb9ab4bb65ca87e905289269ce3e2ab Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 12 Dec 2009 18:27:59 +0100 Subject: [PATCH] duplocale: Tweak. --- ChangeLog | 5 +++++ lib/duplocale.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 81fc88c146..4b322380ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-12 Bruno Haible + + duplocale: Tweak. + * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'. + 2009-12-12 Karl Berry * config/srclist.txt (strtoll.c): tab changes, no more sync. diff --git a/lib/duplocale.c b/lib/duplocale.c index 680eeb1a6e..356a1b02ba 100644 --- a/lib/duplocale.c +++ b/lib/duplocale.c @@ -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 }, -- 2.30.2