diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-12 22:33:07 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-12 22:33:07 +0000 |
commit | 379ff53dc964ee1dc9442dac230c87a595e06a12 (patch) | |
tree | e95b6fe5abe71414f507d85ebcfea63b3d2468b3 /slirp/udp.c | |
parent | ce93da6ffee7f27044c5b49b096ebdec27075110 (diff) | |
download | qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.zip qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.tar.gz qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.tar.bz2 |
win32 compile
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1016 c046a42c-6fe2-441c-8c8c-71466251a162
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 76a4fcc..67a0509 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; |