mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
os: Fix assignment with incompatible pointer type
struct hostent->h_addr_list is of type char**, not const char**.
GCC considers this an error when in C99 mode or later.
Signed-off-by: Joaquim Monteiro <joaquim.monteiro@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1572>
(cherry picked from commit 0ddcd87851)
This commit is contained in:
committed by
Alan Coopersmith
parent
2fed1d019c
commit
dc16b6c03b
@@ -1835,7 +1835,7 @@ siHostnameAddrMatch(int family, void *addr, int len,
|
||||
char hostname[SI_HOSTNAME_MAXLEN];
|
||||
int f, hostaddrlen;
|
||||
void *hostaddr;
|
||||
const char **addrlist;
|
||||
char **addrlist;
|
||||
|
||||
if (siAddrLen >= sizeof(hostname))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user