mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 07:14:49 +02:00
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:

committed by
Simon Giesecke

parent
7bce4ffbc7
commit
9c748f1bf1
@@ -160,7 +160,7 @@ void zmq::tcp_connecter_t::out_event ()
|
||||
// Shut the connecter down.
|
||||
terminate ();
|
||||
|
||||
socket->event_connected (endpoint, (int) fd);
|
||||
socket->event_connected (endpoint, fd);
|
||||
}
|
||||
|
||||
void zmq::tcp_connecter_t::rm_handle ()
|
||||
@@ -435,6 +435,6 @@ void zmq::tcp_connecter_t::close ()
|
||||
const int rc = ::close (s);
|
||||
errno_assert (rc == 0);
|
||||
#endif
|
||||
socket->event_closed (endpoint, (int) s);
|
||||
socket->event_closed (endpoint, s);
|
||||
s = retired_fd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user