Commit 3e74a439 authored by Mikko Koppanen's avatar Mikko Koppanen Committed by Martin Sustrik

Cast execute_timers() result to int

Signed-off-by: 's avatarMikko Koppanen <mkoppanen@php.net>
parent b64b50ae
...@@ -150,7 +150,7 @@ void zmq::devpoll_t::loop () ...@@ -150,7 +150,7 @@ void zmq::devpoll_t::loop ()
pending_list.clear (); pending_list.clear ();
// Execute any due timers. // Execute any due timers.
uint64_t timeout = execute_timers (); int timeout = (int) execute_timers ();
// Wait for events. // Wait for events.
poll_req.dp_fds = &ev_buf [0]; poll_req.dp_fds = &ev_buf [0];
......
...@@ -134,7 +134,7 @@ void zmq::epoll_t::loop () ...@@ -134,7 +134,7 @@ void zmq::epoll_t::loop ()
while (!stopping) { while (!stopping) {
// Execute any due timers. // Execute any due timers.
uint64_t timeout = execute_timers (); int timeout = (int) execute_timers ();
// Wait for events. // Wait for events.
int n = epoll_wait (epoll_fd, &ev_buf [0], max_io_events, int n = epoll_wait (epoll_fd, &ev_buf [0], max_io_events,
......
...@@ -147,7 +147,7 @@ void zmq::kqueue_t::loop () ...@@ -147,7 +147,7 @@ void zmq::kqueue_t::loop ()
while (!stopping) { while (!stopping) {
// Execute any due timers. // Execute any due timers.
uint64_t timeout = execute_timers (); int timeout = (int) execute_timers ();
// Wait for events. // Wait for events.
struct kevent ev_buf [max_io_events]; struct kevent ev_buf [max_io_events];
......
...@@ -124,7 +124,7 @@ void zmq::poll_t::loop () ...@@ -124,7 +124,7 @@ void zmq::poll_t::loop ()
while (!stopping) { while (!stopping) {
// Execute any due timers. // Execute any due timers.
uint64_t timeout = execute_timers (); int timeout = (int) execute_timers ();
// Wait for events. // Wait for events.
int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1); int rc = poll (&pollset [0], pollset.size (), timeout ? timeout : -1);
......
...@@ -148,7 +148,7 @@ void zmq::select_t::loop () ...@@ -148,7 +148,7 @@ void zmq::select_t::loop ()
while (!stopping) { while (!stopping) {
// Execute any due timers. // Execute any due timers.
uint64_t timeout = execute_timers (); int timeout = (int) execute_timers ();
// Intialise the pollsets. // Intialise the pollsets.
memcpy (&readfds, &source_set_in, sizeof source_set_in); memcpy (&readfds, &source_set_in, sizeof source_set_in);
......
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