summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-12-28 11:29:27 +0000
committerDavid Mitchell <davem@iabyn.com>2019-02-19 13:28:12 +0000
commit4ef8bdf9dc2018cb385cf00d11e2e74f0491f8e9 (patch)
tree3a9814fc2348b686f6f42660ddbb0648adfc5c66 /locale.c
parent3680775c4add74dd105f844256620954f5378054 (diff)
downloadperl-4ef8bdf9dc2018cb385cf00d11e2e74f0491f8e9.tar.gz
PERL_GLOBAL_STRUCT_PRIVATE: fix some const strings
change a couple of const char * foo[] = { ... } to const char * const foo[] = { ... } Making the string ptrs const means the whole thing is RO and doesn't appear in data section, making porting/libperl.t happier when building under -DPERL_GLOBAL_STRUCT_PRIVATE.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index a249f80a48..c8f0196095 100644
--- a/locale.c
+++ b/locale.c
@@ -207,7 +207,7 @@ const int categories[] = {
/* The top-most real element is LC_ALL */
-const char * category_names[] = {
+const char * const category_names[] = {
# ifdef USE_LOCALE_NUMERIC
"LC_NUMERIC",