mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-09 15:53:59 +01:00
Merge branch 'master' of github.com:zeromq/libzmq
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user