summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-01-03 23:32:04 +0000
committerTiago Cunha <tcunha@gmx.com>2011-01-03 23:32:04 +0000
commita24b67fc5a750c6ea67e41a3b323eea8fa02a29e (patch)
tree60b1c35099bd98efe960791620ba9c75571b9f7c /input-keys.c
parent521247bedb4756f08ba9fdcf2c073dc318e3dcc6 (diff)
Sync OpenBSD patchset 824:
Last few tables that should be const.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/input-keys.c b/input-keys.c
index c79bb85d..34296462 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -1,4 +1,4 @@
-/* $Id: input-keys.c,v 1.46 2010-12-30 22:27:38 tcunha Exp $ */
+/* $Id: input-keys.c,v 1.47 2011-01-03 23:32:04 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -39,7 +39,7 @@ struct input_key_ent {
#define INPUTKEY_CURSOR 0x2 /* cursor key */
};
-struct input_key_ent input_keys[] = {
+const struct input_key_ent input_keys[] = {
/* Backspace key. */
{ KEYC_BSPACE, "\177", 0 },
@@ -136,11 +136,11 @@ struct input_key_ent input_keys[] = {
void
input_key(struct window_pane *wp, int key)
{
- struct input_key_ent *ike;
- u_int i;
- size_t dlen;
- char *out;
- u_char ch;
+ const struct input_key_ent *ike;
+ u_int i;
+ size_t dlen;
+ char *out;
+ u_char ch;
log_debug2("writing key 0x%x", key);