aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-01-03 23:29:49 +0000
committerTiago Cunha <tcunha@gmx.com>2011-01-03 23:29:49 +0000
commitd9c848d3a61ab5debe19c97c84a7b0b8ce2e1edb (patch)
treeacc294463a24b0534ce7e68566e4a6db5afc3f49 /tty-keys.c
parent66fb24c3a535da1094c8b821e0ad59d0c1ffb15d (diff)
downloadrtmux-d9c848d3a61ab5debe19c97c84a7b0b8ce2e1edb.tar.gz
rtmux-d9c848d3a61ab5debe19c97c84a7b0b8ce2e1edb.tar.bz2
rtmux-d9c848d3a61ab5debe19c97c84a7b0b8ce2e1edb.zip
Sync OpenBSD patchset 821:
Key table should be const.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tty-keys.c b/tty-keys.c
index e4085483..fea7f266 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -1,4 +1,4 @@
-/* $Id: tty-keys.c,v 1.57 2010-06-06 00:23:44 tcunha Exp $ */
+/* $Id: tty-keys.c,v 1.58 2011-01-03 23:29:49 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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++) {