summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2017-10-11 16:13:43 +0900
committerSung-Jin Park <sj76.park@samsung.com>2017-10-20 16:41:55 +0900
commitf0a24579e8f609a282571ab966f1461e7d1d840f (patch)
treee1c49d9eea5931442720fb6e693a4e456d155719
parenta56dbb6d48988e6727627661bad4cbe83bbc5836 (diff)
downloadlibxkbcommon-f0a24579e8f609a282571ab966f1461e7d1d840f.tar.gz
libxkbcommon-f0a24579e8f609a282571ab966f1461e7d1d840f.tar.bz2
libxkbcommon-f0a24579e8f609a282571ab966f1461e7d1d840f.zip
cast a function's return value
Change-Id: I16fe4f7393941353ccc12eb9c365a6911d075a17
-rw-r--r--src/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 799c7f0..1ea223f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -521,7 +521,7 @@ xkb_keymap_key_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc)
XKB_EXPORT int
xkb_keymap_key_set_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc, int enable)
{
- struct xkb_key *key = XkbKey(keymap, kc);
+ struct xkb_key *key = (struct xkb_key *)XkbKey(keymap, kc);
if (!key)
return 0;