From e8302b707d6fddf8e27daa0b3ef70fd3efec823c Mon Sep 17 00:00:00 2001 From: Joaquim Monteiro Date: Sun, 23 Jun 2024 21:17:25 +0100 Subject: [PATCH] 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 (cherry picked from commit 0ddcd8785199c08d9bded3c767a3b1227c670999) Part-of: --- os/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/access.c b/os/access.c index 61ee8e30f..9fe8bb7c7 100644 --- a/os/access.c +++ b/os/access.c @@ -1860,7 +1860,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;