Skip to content

Commit

Permalink
Merge pull request zeromq#41 from stephen-wolf/master
Browse files Browse the repository at this point in the history
use bool type from C99
  • Loading branch information
hintjens committed Apr 27, 2013
2 parents 1be5277 + 80fc0ed commit bf0cb10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmdp/src/mdp_broker.c
Expand Up @@ -545,7 +545,7 @@ int main (int argc, char *argv [])
s_broker_bind (self, "tcp://*:5555");

// Get and process messages forever or until interrupted
while (TRUE) {
while (true) {
zmq_pollitem_t items [] = {
{ self->socket, 0, ZMQ_POLLIN, 0 } };
int rc = zmq_poll (items, 1, HEARTBEAT_INTERVAL * ZMQ_POLL_MSEC);
Expand Down
2 changes: 1 addition & 1 deletion libmdp/src/mdp_worker.c
Expand Up @@ -198,7 +198,7 @@ mdp_worker_getsockopt (mdp_worker_t *self, int option, void *optval, size_t *op
zmsg_t *
mdp_worker_recv (mdp_worker_t *self, zframe_t **reply_to_p)
{
while (TRUE) {
while (true) {
zmq_pollitem_t items [] = {
{ self->worker, 0, ZMQ_POLLIN, 0 } };
int rc = zmq_poll (items, 1, self->heartbeat * ZMQ_POLL_MSEC);
Expand Down

0 comments on commit bf0cb10

Please sign in to comment.