summaryrefslogtreecommitdiff
path: root/src/xcb_out.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-02-23 10:17:40 -0800
committerJamey Sharp <jamey@minilop.net>2006-02-23 10:17:40 -0800
commit662479760c42fc38c458381ee3eaed92e2c8b733 (patch)
tree6a2818feb7a1d8f4ca59572066d4287d34bb7078 /src/xcb_out.c
parentf8a8b465e080faf5479c0b38dc67cc9b9ae24927 (diff)
Make the return value of _xcb_conn_wait boolean, instead of syscall-like.
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r--src/xcb_out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c
index 0afabc2..04b8365 100644
--- a/src/xcb_out.c
+++ b/src/xcb_out.c
@@ -270,7 +270,7 @@ int _xcb_out_flush(XCBConnection *c)
{
int ret = 1;
c->out.request_written = c->out.request;
- while(ret > 0 && (c->out.queue_len || c->out.vec_len))
+ while(ret && (c->out.queue_len || c->out.vec_len))
ret = _xcb_conn_wait(c, /*should_write*/ 1, &c->out.cond);
pthread_cond_broadcast(&c->out.cond);
return ret;