summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tcp_listener.cpp4
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.