diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-03 13:57:14 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:05:53 +1000 |
commit | 7dd415aa6a3959f15276741db168ba264948ecfe (patch) | |
tree | 84e5b697f073722936dc82f138255f71ef2153d4 /Xi/setbmap.c | |
parent | 912402fd71144bcee255141efe12a78abad39240 (diff) |
Xi: use byte-counting macros instead of manual calculation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/setbmap.c')
-rw-r--r-- | Xi/setbmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/setbmap.c b/Xi/setbmap.c index e7b8d4ac0..37c40e408 100644 --- a/Xi/setbmap.c +++ b/Xi/setbmap.c @@ -94,8 +94,8 @@ ProcXSetDeviceButtonMapping(ClientPtr client) REQUEST(xSetDeviceButtonMappingReq); REQUEST_AT_LEAST_SIZE(xSetDeviceButtonMappingReq); - if (stuff->length != (sizeof(xSetDeviceButtonMappingReq) + - stuff->map_length + 3) >> 2) + if (stuff->length != + bytes_to_int32(sizeof(xSetDeviceButtonMappingReq) + stuff->map_length)) return BadLength; ret = dixLookupDevice(&dev, stuff->deviceid, client, DixManageAccess); |