From f29228bbdcffdc8810ff8c766a05c6ca63a42086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 12 Feb 2016 15:57:26 +0100 Subject: Mark some tables as const This allows them to be placed into the read only ELF section. --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.c') diff --git a/view.c b/view.c index abbc3a5..3afa3e8 100644 --- a/view.c +++ b/view.c @@ -1006,7 +1006,7 @@ const char *view_syntax_get(View *view) { } void view_options_set(View *view, enum UiOption options) { - int mapping[] = { + const int mapping[] = { [SYNTAX_SYMBOL_SPACE] = UI_OPTION_SYMBOL_SPACE, [SYNTAX_SYMBOL_TAB] = UI_OPTION_SYMBOL_TAB, [SYNTAX_SYMBOL_TAB_FILL] = UI_OPTION_SYMBOL_TAB_FILL, -- cgit v1.2.3