summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2011-10-28 11:09:20 -0500
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-03-11 17:44:23 +0000
commited00b460acb08787b695f27b864e96102dfd4867 (patch)
tree7d6799fc2123cba64b9e729fc59e0f38e8ec491b
parent20adca02c2a1d0b7c95ecbe387d68f881fd57754 (diff)
Don't use caddr_t casts
(caddr_t) isn't used anywhere else in xcb or libX11. Cast to (char *) for consistency. Removing this cast allows building for MinGW without patching. v2: Cast to (char *) rather than just dropping the cast Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/xcb_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xcb_io.c b/src/xcb_io.c
index 0af47d88..300ef571 100644
--- a/src/xcb_io.c
+++ b/src/xcb_io.c
@@ -478,9 +478,9 @@ void _XSend(Display *dpy, const char *data, long size)
vec[0].iov_base = dpy->buffer;
vec[0].iov_len = dpy->bufptr - dpy->buffer;
- vec[1].iov_base = (caddr_t) data;
+ vec[1].iov_base = (char *)data;
vec[1].iov_len = size;
- vec[2].iov_base = (caddr_t) pad;
+ vec[2].iov_base = (char *)pad;
vec[2].iov_len = -size & 3;
for(ext = dpy->flushes; ext; ext = ext->next_flush)