diff options
author | unknown <bundra@.(none)> | 2010-03-03 15:47:21 +0100 |
---|---|---|
committer | unknown <bundra@.(none)> | 2010-03-03 15:47:21 +0100 |
commit | 352da8ae8775f057a7ec67a7bd3f2270ac1c4d0f (patch) | |
tree | 833e588e043d85a59f85bc2940f35b4f87be8690 /src | |
parent | 14054ecce7d367d8e3d47f84f72d2fc748aec8e4 (diff) |
type mismatch in tcp_listener (win version) fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp_listener.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp_listener.cpp b/src/tcp_listener.cpp index cb84715..db12c7a 100644 --- a/src/tcp_listener.cpp +++ b/src/tcp_listener.cpp @@ -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. |