aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2015-07-17 17:02:11 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-20 18:25:48 +0100
commit369c27e68300a6cf0a98f7455a81b7e4473c7a8b (patch)
tree97af8b201756cf1c6725ca6aeae8e74dcc8b9a1d
parent5389d44f5fef19d661eedb7cf293364f0714e8f0 (diff)
downloadkvmtool-369c27e68300a6cf0a98f7455a81b7e4473c7a8b.tar.gz
ui: remove pointless double const in keymap declarations
clang does not like two const specifiers in one declaration, so remove one to let clang compile kvmtool. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--ui/gtk3.c2
-rw-r--r--ui/sdl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk3.c b/ui/gtk3.c
index b2335bce..1e08a8f6 100644
--- a/ui/gtk3.c
+++ b/ui/gtk3.c
@@ -34,7 +34,7 @@ struct set2_scancode {
.type = SCANCODE_ESCAPED, \
}
-static const struct set2_scancode const keymap[256] = {
+static const struct set2_scancode keymap[256] = {
[9] = DEFINE_SC(0x76), /* <esc> */
[10] = DEFINE_SC(0x16), /* 1 */
[11] = DEFINE_SC(0x1e), /* 2 */
diff --git a/ui/sdl.c b/ui/sdl.c
index a260002a..f97a5112 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -36,7 +36,7 @@ struct set2_scancode {
.type = SCANCODE_ESCAPED,\
}
-static const struct set2_scancode const keymap[256] = {
+static const struct set2_scancode keymap[256] = {
[9] = DEFINE_SC(0x76), /* <esc> */
[10] = DEFINE_SC(0x16), /* 1 */
[11] = DEFINE_SC(0x1e), /* 2 */