summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernd Melchers <melchers@ZEDAT.FU-Berlin.DE>2010-09-02 07:33:57 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-02 07:33:57 +0200
commit8ec0743c7551de3c76126d080961cece732370f1 (patch)
tree3d92e36347c3504d1c4afae6304d4ba4ba72c7f6 /src
parentd5b6f680a54c682da066e769c46075a4bc57bd55 (diff)
Fix for signaler_t on HP-UX and AIX platforms
Diffstat (limited to 'src')
-rw-r--r--src/signaler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signaler.cpp b/src/signaler.cpp
index d65957e..d4a9214 100644
--- a/src/signaler.cpp
+++ b/src/signaler.cpp
@@ -184,7 +184,7 @@ void zmq::signaler_t::send (const command_t &cmd_)
zmq_assert (nbytes == sizeof (command_t));
}
-bool zmq::signaler_t::recv (command_t &cmd_, bool block_)
+bool zmq::signaler_t::recv (command_t *cmd_, bool block_)
{
if (block_) {
@@ -199,7 +199,7 @@ bool zmq::signaler_t::recv (command_t &cmd_, bool block_)
bool result;
ssize_t nbytes;
do {
- nbytes = ::recv (r, buffer, sizeof (command_t), 0);
+ nbytes = ::recv (r, (char*) cmd_, sizeof (command_t), 0);
} while (nbytes == -1 && errno == EINTR);
if (nbytes == -1 && errno == EAGAIN) {
result = false;
@@ -213,7 +213,7 @@ bool zmq::signaler_t::recv (command_t &cmd_, bool block_)
result = true;
}
- if (block_)
+ if (block_) {
// Set the reader to non-blocking mode.
int flags = fcntl (r, F_GETFL, 0);