Commit 21498700 authored by Simon Giesecke's avatar Simon Giesecke

Problem: integer literals assigned to bool variables

Solution: replace by bool literals
parent eacc8056
......@@ -107,7 +107,7 @@ int zmq::lb_t::sendpipe (msg_t *msg_, pipe_t **pipe_)
// Application should handle this as suitable
if (more) {
pipes[current]->rollback ();
more = 0;
more = false;
errno = EAGAIN;
return -1;
}
......
......@@ -209,7 +209,7 @@ zmq::options_t::options_t () :
maxmsgsize (-1),
rcvtimeo (-1),
sndtimeo (-1),
ipv6 (0),
ipv6 (false),
immediate (0),
filter (false),
invert_matching (false),
......
......@@ -441,9 +441,9 @@ void zmq::session_base_t::engine_error (
case stream_engine_t::protocol_error:
if (pending) {
if (pipe)
pipe->terminate (0);
pipe->terminate (false);
if (zap_pipe)
zap_pipe->terminate (0);
zap_pipe->terminate (false);
} else {
terminate ();
}
......
......@@ -162,7 +162,7 @@ int zmq::xpub_t::xsetsockopt (int option_,
}
if (option_ == ZMQ_XPUB_VERBOSE) {
verbose_subs = (*static_cast<const int *> (optval_) != 0);
verbose_unsubs = 0;
verbose_unsubs = false;
} else if (option_ == ZMQ_XPUB_VERBOSER) {
verbose_subs = (*static_cast<const int *> (optval_) != 0);
verbose_unsubs = verbose_subs;
......
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