summaryrefslogtreecommitdiff
path: root/src/xcb_conn.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-03-12 12:40:34 -0800
committerJamey Sharp <jamey@minilop.net>2006-03-12 12:40:34 -0800
commitfb61c94d685a254ef0702a2e2093b8cdda02d514 (patch)
tree29deefc8b765f0c4b50ed24a2860326703c20e36 /src/xcb_conn.c
parent83e652f566671f96ffc53a3c0099a84a1606c695 (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_conn.c')
-rw-r--r--src/xcb_conn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index 792dfb8..1b3e1a2 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -89,8 +89,10 @@ static int write_setup(XCBConnection *c, XCBAuthInfo *auth_info)
assert(count <= sizeof(parts) / sizeof(*parts));
pthread_mutex_lock(&c->iolock);
- _xcb_out_write_block(c, parts, count);
- ret = _xcb_out_flush(c);
+ {
+ struct iovec *parts_ptr = parts;
+ ret = _xcb_out_send(c, &parts_ptr, &count);
+ }
pthread_mutex_unlock(&c->iolock);
return ret;
}