summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-03-24 15:07:23 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-03-24 15:07:23 +0100
commitd61f067f5bade1269213735b8628a92621b62c91 (patch)
treec579f1f3926442d44faca23f7274ab56bdf6b8da /src
parent23bd3726a57793b850cb26e22274fd188fb86e82 (diff)
ZMQ_EVENTS type changed to int
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/socket_base.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index a41622e..351e3c5 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -264,7 +264,7 @@ int zmq::socket_base_t::getsockopt (int option_, void *optval_,
}
if (option_ == ZMQ_EVENTS) {
- if (*optvallen_ < sizeof (uint32_t)) {
+ if (*optvallen_ < sizeof (int)) {
errno = EINVAL;
return -1;
}
@@ -272,12 +272,12 @@ int zmq::socket_base_t::getsockopt (int option_, void *optval_,
if (rc != 0 && (errno == EINTR || errno == ETERM))
return -1;
errno_assert (rc == 0);
- *((uint32_t*) optval_) = 0;
+ *((int*) optval_) = 0;
if (has_out ())
- *((uint32_t*) optval_) |= ZMQ_POLLOUT;
+ *((int*) optval_) |= ZMQ_POLLOUT;
if (has_in ())
- *((uint32_t*) optval_) |= ZMQ_POLLIN;
- *optvallen_ = sizeof (uint32_t);
+ *((int*) optval_) |= ZMQ_POLLIN;
+ *optvallen_ = sizeof (int);
return 0;
}