aboutsummaryrefslogtreecommitdiff
path: root/vis.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 /vis.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 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 32deb80..489957a 100644
--- a/vis.c
+++ b/vis.c
@@ -414,7 +414,7 @@ void vis_delete(Vis *vis, size_t pos, size_t len) {
windows_invalidate(vis, pos, pos + len);
}
-bool vis_action_register(Vis *vis, KeyAction *action) {
+bool vis_action_register(Vis *vis, const KeyAction *action) {
if (!vis->actions)
vis->actions = map_new();
if (!vis->actions)