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); wsa_assert (rc != SOCKET_ERROR);
// Set the non-blocking flag. // Set the non-blocking flag.
flag = 1; u_long uflag = 1;
rc = ioctlsocket (s, FIONBIO, (u_long*) &flag); rc = ioctlsocket (s, FIONBIO, &uflag);
wsa_assert (rc != SOCKET_ERROR); wsa_assert (rc != SOCKET_ERROR);
// Bind the socket to the network interface and port. // Bind the socket to the network interface and port.