xkb: switch to byte counting functions

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-07-06 14:22:40 +10:00
parent 0dc11da575
commit 089c460058

View File

@ -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;