summaryrefslogtreecommitdiff
path: root/curses_keys.h
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-02 18:26:42 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-02 18:26:42 +0000
commitbe7fb97f8a0818dfe7f7582193a80ef27f677615 (patch)
tree21d09036eba88cd1543d444cba36670a7931c67e /curses_keys.h
parent88b4e9dbe242ff2b83f9539a13efc1d4f935da7d (diff)
Make keysym tables const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5396 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'curses_keys.h')
-rw-r--r--curses_keys.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/curses_keys.h b/curses_keys.h
index 10bdf8b5fe..9cdaf69358 100644
--- a/curses_keys.h
+++ b/curses_keys.h
@@ -37,7 +37,7 @@
#define CURSES_KEYS KEY_MAX /* KEY_MAX defined in <curses.h> */
-static int curses2keycode[CURSES_KEYS] = {
+static const int curses2keycode[CURSES_KEYS] = {
[0 ... (CURSES_KEYS - 1)] = -1,
[0x01b] = 1, /* Escape */
@@ -216,7 +216,7 @@ static int curses2keycode[CURSES_KEYS] = {
};
-static int curses2keysym[CURSES_KEYS] = {
+static const int curses2keysym[CURSES_KEYS] = {
[0 ... (CURSES_KEYS - 1)] = -1,
['\n'] = '\n',
@@ -244,7 +244,7 @@ typedef struct {
int keysym;
} name2keysym_t;
-static name2keysym_t name2keysym[] = {
+static const name2keysym_t name2keysym[] = {
/* Plain ASCII */
{ "space", 0x020 },
{ "exclam", 0x021 },