summaryrefslogtreecommitdiff
path: root/Xi/queryst.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-03 13:57:14 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-14 10:05:53 +1000
commit7dd415aa6a3959f15276741db168ba264948ecfe (patch)
tree84e5b697f073722936dc82f138255f71ef2153d4 /Xi/queryst.c
parent912402fd71144bcee255141efe12a78abad39240 (diff)
Xi: use byte-counting macros instead of manual calculation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/queryst.c')
-rw-r--r--Xi/queryst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/queryst.c b/Xi/queryst.c
index c6858e4e0..60ec32ec9 100644
--- a/Xi/queryst.c
+++ b/Xi/queryst.c
@@ -161,7 +161,7 @@ ProcXQueryDeviceState(ClientPtr client)
}
rep.num_classes = num_classes;
- rep.length = (total_length + 3) >> 2;
+ rep.length = bytes_to_int32(total_length);
WriteReplyToClient(client, sizeof(xQueryDeviceStateReply), &rep);
if (total_length > 0)
WriteToClient(client, total_length, savbuf);