From eeb50415ca2a2fe87050f5fc63e2c002a44f5b5f Mon Sep 17 00:00:00 2001 From: rakslice Date: Sat, 5 Oct 2024 13:22:49 -0700 Subject: [PATCH] cast address pointer passed to getsockname --- BasiliskII/src/slirp/tcp_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/slirp/tcp_subr.c b/BasiliskII/src/slirp/tcp_subr.c index 3f2f4135..2fc036df 100755 --- a/BasiliskII/src/slirp/tcp_subr.c +++ b/BasiliskII/src/slirp/tcp_subr.c @@ -1012,7 +1012,7 @@ do_prompt: /* local side address of control conn */ struct sockaddr_in addr; socklen_t addrlen = sizeof(struct sockaddr_in); - if (getsockname(control_so->s, &addr, &addrlen) == 0) { + if (getsockname(control_so->s, (struct sockaddr *)&addr, &addrlen) == 0) { laddr = ntohl(addr.sin_addr.s_addr); } else { /* fall back to whatever we have for our address generally */