summaryrefslogtreecommitdiff
path: root/src/xcb_in.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_in.c
parentf8a8b465e080faf5479c0b38dc67cc9b9ae24927 (diff)
Make the return value of _xcb_conn_wait boolean, instead of syscall-like.
Diffstat (limited to 'src/xcb_in.c')
-rw-r--r--src/xcb_in.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xcb_in.c b/src/xcb_in.c
index bb973a3..ce102e5 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -104,7 +104,7 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **
while(!(e && *e) && ((signed int) (c->in.request_read - request) < 0 ||
(c->in.request_read == request &&
_xcb_queue_is_empty(c->in.current_reply))))
- if(_xcb_conn_wait(c, /*should_write*/ 0, &cond) <= 0)
+ if(!_xcb_conn_wait(c, /*should_write*/ 0, &cond))
goto done;
if(c->in.request_read != request)
@@ -145,7 +145,7 @@ XCBGenericEvent *XCBWaitForEvent(XCBConnection *c)
pthread_mutex_lock(&c->iolock);
/* _xcb_list_remove_head returns 0 on empty list. */
while(!(ret = _xcb_queue_dequeue(c->in.events)))
- if(_xcb_conn_wait(c, /*should_write*/ 0, &c->in.event_cond) <= 0)
+ if(!_xcb_conn_wait(c, /*should_write*/ 0, &c->in.event_cond))
break;
wake_up_next_reader(c);