Partial fix for issue 2963, removed invalid casts from fd_t to int (#2984)

* Fixes issue 2963, ref stream_engine.cpp:981

* Fixes issue 2963, ref socks_connecter.cpp:158

* Fixes issue 2963, ref tcp_listener.cpp:144

* Fixes issue 2963, ref tcp_connecter.cpp:423

* Fixes issue 2963, ref socks_connecter.cpp:436

* Fixes issue 2963, ref tcp_listener.cpp:179

* Fixes issue 2963, ref tcp_listener.cpp:268

* Fixes issue 2963, ref tcp_connecter.cpp:160
This commit is contained in:
Sergey Kachanovskiy
2018-03-12 11:55:58 +01:00
committed by Simon Giesecke
parent 7bce4ffbc7
commit 9c748f1bf1
4 changed files with 8 additions and 8 deletions

View File

@@ -144,7 +144,7 @@ void zmq::tcp_listener_t::close ()
int rc = ::close (s);
errno_assert (rc == 0);
#endif
socket->event_closed (endpoint, (int) s);
socket->event_closed (endpoint, s);
s = retired_fd;
}
@@ -179,7 +179,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
if (options.use_fd != -1) {
s = options.use_fd;
socket->event_listening (endpoint, (int) s);
socket->event_listening (endpoint, s);
return 0;
}
@@ -275,7 +275,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
goto error;
#endif
socket->event_listening (endpoint, (int) s);
socket->event_listening (endpoint, s);
return 0;
error: