aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-12 15:57:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-12 16:15:39 +0100
commitf29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch)
tree7df2502e0314858fd01017333a2eed4a626aa94e /view.c
parentb4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff)
downloadvis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.gz
vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.xz
Mark some tables as const
This allows them to be placed into the read only ELF section.
Diffstat (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
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,