summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-06 14:22:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-14 10:14:02 +1000
commit089c460058c4e6814d98d40179eb4c731f37fa80 (patch)
tree2462021fdd86019f33d33ebd95a417dcbc2b84a8 /xkb
parent0dc11da57562a7bbb6830ab657a2b818c596a537 (diff)
xkb: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index e4e84ceb8..c17250a37 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -667,8 +667,8 @@ ProcXkbGetControls(ClientPtr client)
xkb = dev->key->xkbInfo->desc->ctrls;
rep.type = X_Reply;
- rep.length = (SIZEOF(xkbGetControlsReply)-
- SIZEOF(xGenericReply)) >> 2;
+ rep.length = bytes_to_int32(SIZEOF(xkbGetControlsReply)-
+ SIZEOF(xGenericReply));
rep.sequenceNumber = client->sequence;
rep.deviceID = ((DeviceIntPtr)dev)->id;
rep.numGroups = xkb->num_groups;