Commit 843f90d1 authored by legoc's avatar legoc
Browse files

Added static cast for pollers

parent 1592115b
...@@ -125,7 +125,7 @@ std::auto_ptr<zmq::message_t> ServicesImpl::tryRequestWithOnePartReply(const std ...@@ -125,7 +125,7 @@ std::auto_ptr<zmq::message_t> ServicesImpl::tryRequestWithOnePartReply(const std
if (timeout > 0) { if (timeout > 0) {
// polling // polling
zmq_pollitem_t items[1]; zmq_pollitem_t items[1];
items[0].socket = socket; items[0].socket = static_cast<void *>(socket);
items[0].fd = 0; items[0].fd = 0;
items[0].events = ZMQ_POLLIN; items[0].events = ZMQ_POLLIN;
items[0].revents = 0; items[0].revents = 0;
...@@ -364,7 +364,7 @@ void ServicesImpl::waitForSubscriber(zmq::socket_t * subscriber, const std::stri ...@@ -364,7 +364,7 @@ void ServicesImpl::waitForSubscriber(zmq::socket_t * subscriber, const std::stri
// polling subscriber // polling subscriber
zmq_pollitem_t items[1]; zmq_pollitem_t items[1];
items[0].socket = *subscriber; items[0].socket = static_cast<void *>(*subscriber);
items[0].fd = 0; items[0].fd = 0;
items[0].events = ZMQ_POLLIN; items[0].events = ZMQ_POLLIN;
items[0].revents = 0; items[0].revents = 0;
......
...@@ -88,7 +88,7 @@ void SubscriberImpl::init() { ...@@ -88,7 +88,7 @@ void SubscriberImpl::init() {
// polling subscriber // polling subscriber
zmq_pollitem_t items[1]; zmq_pollitem_t items[1];
items[0].socket = *m_subscriber; items[0].socket = static_cast<void *>(*m_subscriber);
items[0].fd = 0; items[0].fd = 0;
items[0].events = ZMQ_POLLIN; items[0].events = ZMQ_POLLIN;
items[0].revents = 0; items[0].revents = 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