diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-06 12:20:21 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:14:01 +1000 |
commit | 7b9e84e320a6f6449fe7bc58a8d6a094ae37b86c (patch) | |
tree | 570039663c3361ee3b885ace9d42084d94010fe6 /Xext/xres.c | |
parent | aa19d355125a10b1a385c8f134d68e79d3d609c7 (diff) |
Xext: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext/xres.c')
-rw-r--r-- | Xext/xres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/xres.c b/Xext/xres.c index 5c04c1184..9dd08b113 100644 --- a/Xext/xres.c +++ b/Xext/xres.c @@ -75,7 +75,7 @@ ProcXResQueryClients (ClientPtr client) rep.type = X_Reply; rep.sequenceNumber = client->sequence; rep.num_clients = num_clients; - rep.length = rep.num_clients * sz_xXResClient >> 2; + rep.length = bytes_to_int32(rep.num_clients * sz_xXResClient); if (client->swapped) { int n; swaps (&rep.sequenceNumber, n); @@ -144,7 +144,7 @@ ProcXResQueryClientResources (ClientPtr client) rep.type = X_Reply; rep.sequenceNumber = client->sequence; rep.num_types = num_types; - rep.length = rep.num_types * sz_xXResType >> 2; + rep.length = bytes_to_int32(rep.num_types * sz_xXResType); if (client->swapped) { int n; swaps (&rep.sequenceNumber, n); |