diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 15:57:26 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 16:15:39 +0100 |
| commit | f29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch) | |
| tree | 7df2502e0314858fd01017333a2eed4a626aa94e /main.c | |
| parent | b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff) | |
| download | vis-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 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |
