Commit 23bd3726 authored by Martin Sustrik's avatar Martin Sustrik

ZMQ_RCVMORE type changed to int

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 17e82a36
......@@ -51,7 +51,7 @@ Refer to linkzmq:zmq_send[3] and linkzmq:zmq_recv[3] for a detailed description
of sending/receiving multi-part messages.
[horizontal]
Option value type:: int64_t
Option value type:: int
Option value unit:: boolean
Default value:: N/A
Applicable socket types:: all
......
......@@ -244,12 +244,12 @@ int zmq::socket_base_t::getsockopt (int option_, void *optval_,
}
if (option_ == ZMQ_RCVMORE) {
if (*optvallen_ < sizeof (int64_t)) {
if (*optvallen_ < sizeof (int)) {
errno = EINVAL;
return -1;
}
*((int64_t*) optval_) = rcvmore ? 1 : 0;
*optvallen_ = sizeof (int64_t);
*((int*) optval_) = rcvmore ? 1 : 0;
*optvallen_ = sizeof (int);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment