summaryrefslogtreecommitdiff
path: root/src/xkbcomp/keymap.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-09-14 11:17:30 +0300
committerRan Benita <ran234@gmail.com>2012-09-14 21:09:49 +0300
commitc2570d51d1061146c6165b757af5125bb96b59d8 (patch)
tree9b1e234ccfa0aec1de2009c3dd5faf4997c372ee /src/xkbcomp/keymap.c
parent841f32230af7024dc6a8e254a9dc3304301022c9 (diff)
downloadlibxkbcommon-c2570d51d1061146c6165b757af5125bb96b59d8.tar.gz
libxkbcommon-c2570d51d1061146c6165b757af5125bb96b59d8.tar.bz2
libxkbcommon-c2570d51d1061146c6165b757af5125bb96b59d8.zip
state, map: constify references to xkb_key
Makes it clear that we treat the keys as immutible values in these files. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/keymap.c')
-rw-r--r--src/xkbcomp/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbcomp/keymap.c b/src/xkbcomp/keymap.c
index d71644d..59fea7a 100644
--- a/src/xkbcomp/keymap.c
+++ b/src/xkbcomp/keymap.c
@@ -178,7 +178,7 @@ ApplyInterpsToKey(struct xkb_keymap *keymap, struct xkb_key *key)
return false;
}
- *XkbKeyActionEntry(key, group, level) = interp->act;
+ key->actions[group * key->width + level] = interp->act;
}
}
}