summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-07-03 15:33:25 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-07-03 15:33:25 +0200
commit8fb9d3c6d058393478d3b3ccb1f20bcb19bbe5a0 (patch)
tree265a8d0207de3a3efda4bcf526a55029229ebbf7
parent6ae1be1a121b9367ea11ce1789d99ec56fb39682 (diff)
parentc687c7e61e8519c93eb4bc7ef43c5cf63671eb3e (diff)
Merge branch 'master' of github.com:zeromq/libzmq
-rw-r--r--builds/msvc/libzmq/libzmq.vcproj12
-rw-r--r--src/signaler.cpp6
2 files changed, 11 insertions, 7 deletions
diff --git a/builds/msvc/libzmq/libzmq.vcproj b/builds/msvc/libzmq/libzmq.vcproj
index 93961e3..1f841c2 100644
--- a/builds/msvc/libzmq/libzmq.vcproj
+++ b/builds/msvc/libzmq/libzmq.vcproj
@@ -411,6 +411,10 @@
>
</File>
<File
+ RelativePath="..\..\..\src\signaler.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\..\src\socket_base.cpp"
>
</File>
@@ -569,10 +573,6 @@
>
</File>
<File
- RelativePath="..\..\..\src\i_inout.hpp"
- >
- </File>
- <File
RelativePath="..\..\..\src\i_poll_events.hpp"
>
</File>
@@ -713,6 +713,10 @@
>
</File>
<File
+ RelativePath="..\..\..\src\signaler.hpp"
+ >
+ </File>
+ <File
RelativePath="..\..\..\src\socket_base.hpp"
>
</File>
diff --git a/src/signaler.cpp b/src/signaler.cpp
index fb72a07..8778d1a 100644
--- a/src/signaler.cpp
+++ b/src/signaler.cpp
@@ -134,7 +134,7 @@ void zmq::signaler_t::send ()
errno_assert (sz == sizeof (inc));
#elif defined ZMQ_HAVE_WINDOWS
unsigned char dummy = 0;
- int nbytes = ::send (w, &dummy, sizeof (dummy), 0);
+ int nbytes = ::send (w, (char*) &dummy, sizeof (dummy), 0);
wsa_assert (nbytes != SOCKET_ERROR);
zmq_assert (nbytes == sizeof (dummy));
#else
@@ -219,8 +219,8 @@ void zmq::signaler_t::recv ()
zmq_assert (dummy == 1);
#else
unsigned char dummy;
-#if ZMQ_HAVE_WINDOWS
- int nbytes = ::recv (r, &dummy, sizeof (dummy), 0);
+#if defined ZMQ_HAVE_WINDOWS
+ int nbytes = ::recv (r, (char*) &dummy, sizeof (dummy), 0);
wsa_assert (nbytes != SOCKET_ERROR);
#else
ssize_t nbytes = ::recv (r, &dummy, sizeof (dummy), 0);