diff options
-rw-r--r-- | curses_keys.h | 6 | ||||
-rw-r--r-- | keymaps.c | 2 | ||||
-rw-r--r-- | sdl_keysym.h | 2 | ||||
-rw-r--r-- | vnc_keysym.h | 2 |
4 files changed, 6 insertions, 6 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 }, @@ -24,7 +24,7 @@ static int get_keysym(const char *name) { - name2keysym_t *p; + const name2keysym_t *p; for(p = name2keysym; p->name != NULL; p++) { if (!strcmp(p->name, name)) return p->keysym; diff --git a/sdl_keysym.h b/sdl_keysym.h index 9a7414209f..c9087d75a7 100644 --- a/sdl_keysym.h +++ b/sdl_keysym.h @@ -2,7 +2,7 @@ typedef struct { const char* name; int keysym; } name2keysym_t; -static name2keysym_t name2keysym[]={ +static const name2keysym_t name2keysym[]={ /* ascii */ { "space", 0x020}, { "exclam", 0x021}, diff --git a/vnc_keysym.h b/vnc_keysym.h index b6a172de9c..d1527ec02a 100644 --- a/vnc_keysym.h +++ b/vnc_keysym.h @@ -2,7 +2,7 @@ typedef struct { const char* name; int keysym; } name2keysym_t; -static name2keysym_t name2keysym[]={ +static const name2keysym_t name2keysym[]={ /* ascii */ { "space", 0x020}, { "exclam", 0x021}, |