aboutsummaryrefslogtreecommitdiff
path: root/slirp/tcp_subr.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-03-22 01:02:52 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-03-28 20:33:26 +0200
commit1c5970a8b8ed79334e8ab303fec7287442538c3c (patch)
tree71ed4fd093bfe7986ac77cdff35ff417f611d350 /slirp/tcp_subr.c
parentb72210568ef0c0fb141a01cffb71a09c4efa0364 (diff)
downloadqemu-1c5970a8b8ed79334e8ab303fec7287442538c3c.zip
qemu-1c5970a8b8ed79334e8ab303fec7287442538c3c.tar.gz
qemu-1c5970a8b8ed79334e8ab303fec7287442538c3c.tar.bz2
slirp: use socket_set_nonblock
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/tcp_subr.c')
-rw-r--r--slirp/tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c
index 6f6585a..0a545c4 100644
--- a/slirp/tcp_subr.c
+++ b/slirp/tcp_subr.c
@@ -336,7 +336,7 @@ int tcp_fconnect(struct socket *so)
int opt, s=so->s;
struct sockaddr_in addr;
- fd_nonblock(s);
+ socket_set_nonblock(s);
opt = 1;
setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(opt ));
opt = 1;
@@ -424,7 +424,7 @@ tcp_connect(struct socket *inso)
tcp_close(sototcpcb(so)); /* This will sofree() as well */
return;
}
- fd_nonblock(s);
+ socket_set_nonblock(s);
opt = 1;
setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int));
opt = 1;