diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-03-12 12:40:34 -0800 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-03-12 12:40:34 -0800 |
commit | fb61c94d685a254ef0702a2e2093b8cdda02d514 (patch) | |
tree | 29deefc8b765f0c4b50ed24a2860326703c20e36 /src/xcb_in.c | |
parent | 83e652f566671f96ffc53a3c0099a84a1606c695 (diff) |
Remove c->out.vec. Pass iovecs directly down the call tree. Add _xcb_out_flush_to, refactor other functions, make write_block static.
Diffstat (limited to 'src/xcb_in.c')
-rw-r--r-- | src/xcb_in.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xcb_in.c b/src/xcb_in.c index fe9a873..89b06ab 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -252,9 +252,8 @@ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError ** pthread_mutex_lock(&c->iolock); /* If this request has not been written yet, write it. */ - if((signed int) (c->out.request_written - request) < 0) - if(!_xcb_out_flush(c)) - goto done; /* error */ + if(!_xcb_out_flush_to(c, request)) + goto done; /* error */ for(prev_reader = &c->in.readers; *prev_reader && (*prev_reader)->request <= request; prev_reader = &(*prev_reader)->next) if((*prev_reader)->request == request) |