mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-15 06:30:13 +00:00
cast address pointer passed to getsockname
This commit is contained in:
parent
2148b0b636
commit
eeb50415ca
@ -1012,7 +1012,7 @@ do_prompt:
|
|||||||
/* local side address of control conn */
|
/* local side address of control conn */
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
socklen_t addrlen = sizeof(struct sockaddr_in);
|
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);
|
laddr = ntohl(addr.sin_addr.s_addr);
|
||||||
} else {
|
} else {
|
||||||
/* fall back to whatever we have for our address generally */
|
/* fall back to whatever we have for our address generally */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user