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. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 30e559a..9169005 100644 --- a/main.c +++ b/main.c @@ -281,7 +281,7 @@ enum { VIS_ACTION_NOP, }; -static KeyAction vis_action[] = { +static const KeyAction vis_action[] = { [VIS_ACTION_EDITOR_SUSPEND] = { "editor-suspend", "Suspend the editor", @@ -1769,7 +1769,7 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; for (int i = 0; i < LENGTH(vis_action); i++) { - KeyAction *action = &vis_action[i]; + const KeyAction *action = &vis_action[i]; if (!vis_action_register(vis, action)) vis_die(vis, "Could not register action: %s\n", action->name); } -- cgit v1.2.3