X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=slirp%2Fif.c;h=2ce9a6424fb9024c71dfc84e9e833c143cc15d68;hb=45a8f3ca063cd38c851f8795c4b11add034ba300;hp=9317cbfe9c8b09003deb8e29333b37d028e83407;hpb=c9a621176e479b8106056ed992fddf34d9d0d206;p=qemu diff --git a/slirp/if.c b/slirp/if.c index 9317cbf..2ce9a64 100644 --- a/slirp/if.c +++ b/slirp/if.c @@ -79,14 +79,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; @@ -111,7 +111,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));