aboutsummaryrefslogtreecommitdiff
path: root/if.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-07 23:27:35 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-07 23:27:35 +0000
commit3b92498f69346ccbd24872f41d54c27ffb36f66f (patch)
treed4d2883bfdd3c41e8cc5dc6ebe1b5dfebac36c7e /if.c
parent831e0fc92bf3c47ac605499f4bb30e530179cf7c (diff)
downloadslirp-3b92498f69346ccbd24872f41d54c27ffb36f66f.zip
slirp-3b92498f69346ccbd24872f41d54c27ffb36f66f.tar.gz
slirp-3b92498f69346ccbd24872f41d54c27ffb36f66f.tar.bz2
windows fixes (Gregory Alexander)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1102 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'if.c')
-rw-r--r--if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/if.c b/if.c
index c99c837..ca4aeb4 100644
--- a/if.c
+++ b/if.c
@@ -74,14 +74,14 @@ writen(fd, bptr, n)
int total;
/* This should succeed most of the time */
- ret = write(fd, bptr, n);
+ ret = send(fd, bptr, n,0);
if (ret == n || ret <= 0)
return ret;
/* Didn't write everything, go into the loop */
total = ret;
while (n > total) {
- ret = write(fd, bptr+total, n-total);
+ ret = send(fd, bptr+total, n-total,0);
if (ret <= 0)
return ret;
total += ret;
@@ -106,7 +106,7 @@ if_input(ttyp)
DEBUG_CALL("if_input");
DEBUG_ARG("ttyp = %lx", (long)ttyp);
- if_n = read(ttyp->fd, (char *)if_inbuff, INBUFF_SIZE);
+ if_n = recv(ttyp->fd, (char *)if_inbuff, INBUFF_SIZE,0);
DEBUG_MISC((dfd, " read %d bytes\n", if_n));