From: Bruno Haible Date: Sat, 12 Dec 2009 17:27:59 +0000 (+0100) Subject: duplocale: Tweak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7a495839cb9ab4bb65ca87e905289269ce3e2ab;p=pspp duplocale: Tweak. --- 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 },