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>
This commit is contained in:
Jon TURNEY 2011-10-28 11:09:20 -05:00
parent 20adca02c2
commit ed00b460ac

View file

@ -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)