diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-01 02:16:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-01 02:16:25 +0000 |
commit | 1c86713afd3e6d42547f64daa520992c74f3cdcd (patch) | |
tree | f1f3ef19f1258dddcf0c5655075eed8e1f375987 /tty-keys.c | |
parent | b6950ed8aa4487f0c1a45cbf202a97d9fa22d485 (diff) | |
download | rtmux-1c86713afd3e6d42547f64daa520992c74f3cdcd.tar.gz rtmux-1c86713afd3e6d42547f64daa520992c74f3cdcd.tar.bz2 rtmux-1c86713afd3e6d42547f64daa520992c74f3cdcd.zip |
Key table should be const.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,7 +54,7 @@ struct tty_key_ent { * Default key tables. Those flagged with TTYKEY_RAW are inserted directly, * otherwise they are looked up in terminfo(5). */ -struct tty_key_ent tty_keys[] = { +const struct tty_key_ent tty_keys[] = { /* * Numeric keypad. Just use the vt100 escape sequences here and always * put the terminal into keypad_xmit mode. Translation of numbers @@ -343,9 +343,9 @@ tty_keys_add1(struct tty_key **tkp, const char *s, int key) void tty_keys_init(struct tty *tty) { - struct tty_key_ent *tke; - u_int i; - const char *s; + const struct tty_key_ent *tke; + u_int i; + const char *s; tty->key_tree = NULL; for (i = 0; i < nitems(tty_keys); i++) { |