From dc16b6c03b2c90d6729e7c137379f32e69ce70dd 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 Part-of: (cherry picked from commit 0ddcd8785199c08d9bded3c767a3b1227c670999) --- os/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/access.c b/os/access.c index 35e6ae7eb..495d1e9c7 100644 --- a/os/access.c +++ b/os/access.c @@ -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;