backend-rdp: constify keyboard layout information

Those information remain constant during execution, so mark them
as const.

Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
Stefan Agner
2019-06-20 22:45:02 +02:00
committed by Simon Ser
parent edcab103da
commit c220a40a81
+2 -2
View File
@@ -828,7 +828,7 @@ struct rdp_to_xkb_keyboard_layout {
/* table reversed from /* table reversed from
https://github.com/awakecoding/FreeRDP/blob/master/libfreerdp/locale/xkb_layout_ids.c#L811 */ https://github.com/awakecoding/FreeRDP/blob/master/libfreerdp/locale/xkb_layout_ids.c#L811 */
static static const
struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = { struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = {
{KBD_ARABIC_101, "ara", 0}, {KBD_ARABIC_101, "ara", 0},
{KBD_BULGARIAN, 0, 0}, {KBD_BULGARIAN, 0, 0},
@@ -943,7 +943,7 @@ struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = {
}; };
/* taken from 2.2.7.1.6 Input Capability Set (TS_INPUT_CAPABILITYSET) */ /* taken from 2.2.7.1.6 Input Capability Set (TS_INPUT_CAPABILITYSET) */
static char *rdp_keyboard_types[] = { static const char *rdp_keyboard_types[] = {
"", /* 0: unused */ "", /* 0: unused */
"", /* 1: IBM PC/XT or compatible (83-key) keyboard */ "", /* 1: IBM PC/XT or compatible (83-key) keyboard */
"", /* 2: Olivetti "ICO" (102-key) keyboard */ "", /* 2: Olivetti "ICO" (102-key) keyboard */