]> git.proxmox.com Git - qemu.git/blobdiff - curses_keys.h
Don't leak VLANClientState on PCI hot remove
[qemu.git] / curses_keys.h
index 613e5f6803bd22ea55a9aac447d6d0159d6fdd76..0105279087746294c1f8da51f937b9aab2a64510 100644 (file)
@@ -37,7 +37,7 @@
 
 #define CURSES_KEYS         KEY_MAX     /* KEY_MAX defined in <curses.h> */
 
-int curses2keycode[CURSES_KEYS] = {
+static const int curses2keycode[CURSES_KEYS] = {
     [0 ... (CURSES_KEYS - 1)] = -1,
 
     [0x01b] = 1, /* Escape */
@@ -192,13 +192,13 @@ int curses2keycode[CURSES_KEYS] = {
     [0x014] = 20 | CNTRL, /* Control + t */
     [0x019] = 21 | CNTRL, /* Control + y */
     [0x015] = 22 | CNTRL, /* Control + u */
-    [0x009] = 23 | CNTRL, /* Control + i */
+    /* Control + i collides with Tab */
     [0x00f] = 24 | CNTRL, /* Control + o */
     [0x010] = 25 | CNTRL, /* Control + p */
 
     [0x001] = 30 | CNTRL, /* Control + a */
     [0x013] = 31 | CNTRL, /* Control + s */
-    [0x014] = 32 | CNTRL, /* Control + d */
+    [0x004] = 32 | CNTRL, /* Control + d */
     [0x006] = 33 | CNTRL, /* Control + f */
     [0x007] = 34 | CNTRL, /* Control + g */
     [0x008] = 35 | CNTRL, /* Control + h */
@@ -216,7 +216,7 @@ int curses2keycode[CURSES_KEYS] = {
 
 };
 
-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 },