From 352da8ae8775f057a7ec67a7bd3f2270ac1c4d0f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 3 Mar 2010 15:47:21 +0100 Subject: type mismatch in tcp_listener (win version) fixed --- src/tcp_listener.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tcp_listener.cpp') 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. -- cgit v1.2.3