summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/locale-util.c2
-rw-r--r--src/basic/locale-util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/locale-util.c b/src/basic/locale-util.c
index 8134f61a73..ada0a28cd8 100644
--- a/src/basic/locale-util.c
+++ b/src/basic/locale-util.c
@@ -273,7 +273,7 @@ out:
const char *special_glyph(SpecialGlyph code) {
- static const char *draw_table[2][_SPECIAL_GLYPH_MAX] = {
+ static const char* const draw_table[2][_SPECIAL_GLYPH_MAX] = {
/* ASCII fallback */
[false] = {
[TREE_VERTICAL] = "| ",
diff --git a/src/basic/locale-util.h b/src/basic/locale-util.h
index 353b7845fd..0630a034ab 100644
--- a/src/basic/locale-util.h
+++ b/src/basic/locale-util.h
@@ -67,7 +67,7 @@ typedef enum {
_SPECIAL_GLYPH_MAX
} SpecialGlyph;
-const char *special_glyph(SpecialGlyph code);
+const char *special_glyph(SpecialGlyph code) _const_;
const char* locale_variable_to_string(LocaleVariable i) _const_;
LocaleVariable locale_variable_from_string(const char *s) _pure_;