From 4ef8bdf9dc2018cb385cf00d11e2e74f0491f8e9 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Fri, 28 Dec 2018 11:29:27 +0000 Subject: 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. --- locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale.c') 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", -- cgit v1.2.1