projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove XCB_CEIL and use a simpler definition for XCB_PAD.
[free-sw/xcb/libxcb]
/
src
/
xcb_out.c
diff --git
a/src/xcb_out.c
b/src/xcb_out.c
index
89c7618
..
a6b0350
100644
(file)
--- a/
src/xcb_out.c
+++ b/
src/xcb_out.c
@@
-137,7
+137,7
@@
int XCBSendRequest(XCBConnection *c, unsigned int *request, struct iovec *vector
/* put together the length field, possibly using BIGREQUESTS */
for(i = 0; i < req->count; ++i)
- longlen +=
XCB_CEIL(vector[i].iov_len
) >> 2;
+ longlen +=
(vector[i].iov_len + 3
) >> 2;
if(longlen > c->setup->maximum_request_length)
{