mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Problem: integer literals assigned to bool variables
Solution: replace by bool literals
This commit is contained in:
parent
eacc805646
commit
21498700ef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user