From c0bd91f49e670c1e56112d0d74501c2c7cc5ade2 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 cf784248d..08a99bda4 100644 --- a/os/access.c +++ b/os/access.c @@ -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;