From 66ef07b684165a09f21069ad7fc3b1105cdb4e10 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 2 Jan 2010 14:56:43 +0000 Subject: Removed compile warnings. --- libxcb/src/xcb_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libxcb/src/xcb_out.c') 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)) -- cgit v1.2.3