aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-01-02 14:56:43 +0000
committermarha <marha@users.sourceforge.net>2010-01-02 14:56:43 +0000
commit66ef07b684165a09f21069ad7fc3b1105cdb4e10 (patch)
treea49704c837e3c92fddefc9aa6e5f6d86b7968abe /libxcb/src
parentad01e57c327538a3d75fb24ad18b54b0fceb21cc (diff)
downloadvcxsrv-66ef07b684165a09f21069ad7fc3b1105cdb4e10.tar.gz
vcxsrv-66ef07b684165a09f21069ad7fc3b1105cdb4e10.tar.bz2
vcxsrv-66ef07b684165a09f21069ad7fc3b1105cdb4e10.zip
Removed compile warnings.
Diffstat (limited to 'libxcb/src')
-rw-r--r--libxcb/src/xcb_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxcb/src/xcb_out.c b/libxcb/src/xcb_out.c
index 08d19c65c..ab08d7da9 100644
--- a/libxcb/src/xcb_out.c
+++ b/libxcb/src/xcb_out.c
@@ -240,11 +240,11 @@ unsigned int xcb_send_request(xcb_connection_t *c, int flags, struct iovec *vect
if(prefix[2])
{
prefix[1] = ((uint32_t *) vector[1].iov_base)[0];
- vector[1].iov_base = (uint32_t *) vector[1].iov_base + 1;
+ vector[1].iov_base = (caddr_t)((uint32_t *) vector[1].iov_base + 1);
vector[1].iov_len -= sizeof(uint32_t);
}
vector[0].iov_len = sizeof(uint32_t) * ((prefix[0] ? 1 : 0) + (prefix[2] ? 2 : 0));
- vector[0].iov_base = prefix + !prefix[0];
+ vector[0].iov_base = (caddr_t)(prefix + !prefix[0]);
}
if(!write_block(c, vector, veclen))