BIND 10 trac2377, updated. 2f3467a4eaeea16afe3119ab6f6628ed1a7f941a [2377] style fix: don't use result of x&y as a boolean directly
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 7 03:32:05 UTC 2012
The branch, trac2377 has been updated
via 2f3467a4eaeea16afe3119ab6f6628ed1a7f941a (commit)
from 9ea3182d49d0ad15571ea962ae34b68bcf5a200f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2f3467a4eaeea16afe3119ab6f6628ed1a7f941a
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Dec 6 19:31:40 2012 -0800
[2377] style fix: don't use result of x&y as a boolean directly
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/master_loader.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/master_loader.cc b/src/lib/dns/master_loader.cc
index 60a97d6..3bda359 100644
--- a/src/lib/dns/master_loader.cc
+++ b/src/lib/dns/master_loader.cc
@@ -119,7 +119,7 @@ public:
// Good, we loaded another one
++count;
- } else if (!(options_ & MANY_ERRORS)) {
+ } else if ((options_ & MANY_ERRORS) == 0) {
return (true);
}
} catch (const isc::Exception& e) {
@@ -127,7 +127,7 @@ public:
callbacks_.error(lexer_.getSourceName(),
lexer_.getSourceLine(),
e.what());
- if (options_ & MANY_ERRORS) {
+ if ((options_ & MANY_ERRORS) != 0) {
// We want to continue. Try to read until the end of line
bool end = false;
do {
More information about the bind10-changes
mailing list