summaryrefslogtreecommitdiff
path: root/src/xcb_conn.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-02-12 12:25:05 -0800
committerJamey Sharp <jamey@minilop.net>2010-04-17 18:20:40 -0700
commit6dd8228a137d280ce24cec604a419129d8ed0e8e (patch)
tree399e99c62c675b533aaa0e77c5ecdc66905d60ba /src/xcb_conn.c
parenta63fbc9d6c484e5ad7a5e9d56f81b8e1a2f38a82 (diff)
Delete a useless level of indirection from _xcb_out_send's parameters.
_xcb_out_send needs _xcb_conn_wait to store back its progress so it can be reinvoked to pick up where it left off---but then _xcb_out_send guarantees that it leaves either an empty output vector or a shut-down connection, so *its* callers never care how much progress was made. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'src/xcb_conn.c')
-rw-r--r--src/xcb_conn.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index 1d37614..50a662b 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -102,10 +102,7 @@ static int write_setup(xcb_connection_t *c, xcb_auth_info_t *auth_info)
assert(count <= (int) (sizeof(parts) / sizeof(*parts)));
pthread_mutex_lock(&c->iolock);
- {
- struct iovec *parts_ptr = parts;
- ret = _xcb_out_send(c, &parts_ptr, &count);
- }
+ ret = _xcb_out_send(c, parts, count);
pthread_mutex_unlock(&c->iolock);
return ret;
}