diff options
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index 76a4fcc97..67a05090f 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -329,7 +329,7 @@ udp_attach(so) addr.sin_addr.s_addr = INADDR_ANY; if(bind(so->s, (struct sockaddr *)&addr, sizeof(addr))<0) { int lasterrno=errno; - close(so->s); + closesocket(so->s); so->s=-1; errno=lasterrno; } else { @@ -345,7 +345,7 @@ void udp_detach(so) struct socket *so; { - close(so->s); + closesocket(so->s); /* if (so->so_m) m_free(so->so_m); done by sofree */ sofree(so); @@ -527,7 +527,7 @@ struct cu_header { addr.sin_port = htons(518); sendto(s, (char *)nmsg, sizeof(*nmsg), 0, (struct sockaddr *) &addr, sizeof(addr)); - close(s) ; + closesocket(s) ; omsg->type = nmsg->type = ANNOUNCE; OTOSIN(omsg, ctl_addr)->sin_port = temp_port; @@ -558,7 +558,7 @@ struct cu_header { addr.sin_port = htons(518); sendto(s, (char *)nmsg, sizeof(*nmsg), 0, (struct sockaddr *)&addr, sizeof(addr)); - close(s); + closesocket(s); OTOSIN(omsg, ctl_addr)->sin_port = temp_port; OTOSIN(nmsg, ctl_addr)->sin_port = temp_port; |