mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 17:40:05 +01: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>
(cherry picked from commit 0ddcd87851)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1635>
This commit is contained in:
parent
cec99a3811
commit
c0bd91f49e
1 changed files with 1 additions and 1 deletions
|
|
@ -1866,7 +1866,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…
Add table
Reference in a new issue