/[qemu]/qemu/slirp/socket.c
ViewVC logotype

Diff of /qemu/slirp/socket.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by bellard, Thu Oct 7 23:27:35 2004 UTC revision 1.4 by bellard, Sun Nov 21 20:02:08 2004 UTC
# Line 175  soread(so) Line 175  soread(so)
175           * a close will be detected on next iteration.           * a close will be detected on next iteration.
176           * A return of -1 wont (shouldn't) happen, since it didn't happen above           * A return of -1 wont (shouldn't) happen, since it didn't happen above
177           */           */
178          if (n == 2 && nn == iov[0].iov_len)          if (n == 2 && nn == iov[0].iov_len) {
179             nn += recv(so->s, iov[1].iov_base, iov[1].iov_len,0);              int ret;
180                ret = recv(so->s, iov[1].iov_base, iov[1].iov_len,0);
181                if (ret > 0)
182                    nn += ret;
183            }
184                    
185          DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));          DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn));
186  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26