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>
This commit is contained in:
parent
34662f15af
commit
0ddcd87851
|
@ -1842,7 +1842,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;
|
||||
|
|
Loading…
Reference in New Issue