diff options
author | Stefan Agner <stefan@agner.ch> | 2019-06-20 22:45:02 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-13 14:22:30 +0000 |
commit | c220a40a817aeb49b9a3a8146c8b5626d89bef97 (patch) | |
tree | fac4211b9f61fc1432d9568e5a41ace2b7693ddb | |
parent | edcab103daed5ce1691cb95e4eda02bcb1a0c3ab (diff) | |
download | weston-c220a40a817aeb49b9a3a8146c8b5626d89bef97.tar.gz |
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>
-rw-r--r-- | libweston/backend-rdp/rdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index 376ff0de..e2f59dc5 100644 --- a/libweston/backend-rdp/rdp.c +++ b/libweston/backend-rdp/rdp.c @@ -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 */ |