diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-06 14:22:40 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:14:02 +1000 |
commit | 089c460058c4e6814d98d40179eb4c731f37fa80 (patch) | |
tree | 2462021fdd86019f33d33ebd95a417dcbc2b84a8 | |
parent | 0dc11da57562a7bbb6830ab657a2b818c596a537 (diff) |
xkb: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | xkb/xkb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |