0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 02:27:49 +08:00

type mismatch in tcp_listener (win version) fixed

This commit is contained in:
unknown 2010-03-03 15:47:21 +01:00
parent 14054ecce7
commit 352da8ae87

View File

@ -69,8 +69,8 @@ int zmq::tcp_listener_t::set_address (const char *protocol_, const char *addr_)
wsa_assert (rc != SOCKET_ERROR);
// Set the non-blocking flag.
flag = 1;
rc = ioctlsocket (s, FIONBIO, (u_long*) &flag);
u_long uflag = 1;
rc = ioctlsocket (s, FIONBIO, &uflag);
wsa_assert (rc != SOCKET_ERROR);
// Bind the socket to the network interface and port.