summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-04-25 19:52:11 +0300
committerDaniel Stone <daniel@fooishbar.org>2009-01-22 15:08:57 +1100
commitb5f49382fe48f0a762d9a15fb10a7d7e1183fc8d (patch)
tree702b7695062535454d079b2409ccc06b5a7532e4 /include
parent1bd7fd195d85681e722161f8c636a28f11b40abb (diff)
XKB: Sanitise ctrls action
Turn four unsigned chars into one unsigned long. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/xkbstr.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/xkbstr.h b/include/xkbstr.h
index 193f27618..0a49ee1c4 100644
--- a/include/xkbstr.h
+++ b/include/xkbstr.h
@@ -180,20 +180,8 @@ typedef struct _XkbSwitchScreenAction {
typedef struct _XkbCtrlsAction {
unsigned char type;
unsigned char flags;
- /* FIXME: Make this an int. */
- unsigned char ctrls3;
- unsigned char ctrls2;
- unsigned char ctrls1;
- unsigned char ctrls0;
+ unsigned long ctrls;
} XkbCtrlsAction;
-#define XkbActionSetCtrls(a, c) ((a)->ctrls3 = ((c) >> 24) & 0xff, \
- (a)->ctrls2 = ((c) >> 16) & 0xff, \
- (a)->ctrls1 = ((c) >> 8) & 0xff, \
- (a)->ctrls0 = (c) & 0xff)
-#define XkbActionCtrls(a) ((((unsigned int)(a)->ctrls3)<<24)|\
- (((unsigned int)(a)->ctrls2)<<16)|\
- (((unsigned int)(a)->ctrls1)<<8)|\
- ((unsigned int) (a)->ctrls0))
typedef struct _XkbMessageAction {
unsigned char type;