backend-rdp: constify keyboard layout information
authorStefan Agner <stefan@agner.ch>
Thu, 20 Jun 2019 20:45:02 +0000 (22:45 +0200)
committerSimon Ser <contact@emersion.fr>
Mon, 13 Jan 2020 14:22:30 +0000 (14:22 +0000)
Those information remain constant during execution, so mark them
as const.

Signed-off-by: Stefan Agner <stefan@agner.ch>
libweston/backend-rdp/rdp.c

index 376ff0de4bc61b29a94c96cff2001ea8382fd886..e2f59dc518b166d75c017eefaf0d16bd48ef27c4 100644 (file)
@@ -828,7 +828,7 @@ struct rdp_to_xkb_keyboard_layout {
 
 /* table reversed from
        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[] = {
        {KBD_ARABIC_101, "ara", 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) */
-static char *rdp_keyboard_types[] = {
+static const char *rdp_keyboard_types[] = {
        "",     /* 0: unused */
        "", /* 1: IBM PC/XT or compatible (83-key) keyboard */
        "", /* 2: Olivetti "ICO" (102-key) keyboard */