From 089c460058c4e6814d98d40179eb4c731f37fa80 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 6 Jul 2009 14:22:40 +1000 Subject: xkb: switch to byte counting functions Signed-off-by: Peter Hutterer --- xkb/xkb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xkb') 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; -- cgit v1.2.3