mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 03:58:03 +02:00
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:
parent
20adca02c2
commit
ed00b460ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue