[Slirp] [Git][slirp/libslirp][master] tcp_subr: simplify code

Samuel Thibault gitlab at gitlab.freedesktop.org
Fri Jan 29 21:53:02 UTC 2021



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
50a9171f by Samuel Thibault at 2021-01-29T22:52:35+01:00
tcp_subr: simplify code

This is actually similar to the fix in 9f78e94912f9 ("Fix a typo that
can cause slow socket response on Windows."), except that here there is
no semantic change since s = so->s above.

Signed-off-by: Samuel Thibault <samuel.thibault at ens-lyon.org>

- - - - -


1 changed file:

- src/tcp_subr.c


Changes:

=====================================
src/tcp_subr.c
=====================================
@@ -421,7 +421,7 @@ int tcp_fconnect(struct socket *so, unsigned short af)
         struct sockaddr_storage addr;
 
         slirp_set_nonblock(s);
-        so->slirp->cb->register_poll_fd(so->s, so->slirp->opaque);
+        so->slirp->cb->register_poll_fd(s, so->slirp->opaque);
         slirp_socket_set_fast_reuse(s);
         opt = 1;
         setsockopt(s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(opt));



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/50a9171f2fb23182c3270faefab74152d49c7e97

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/50a9171f2fb23182c3270faefab74152d49c7e97
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20210129/f2882ea4/attachment-0001.htm>


More information about the Slirp mailing list