]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2377] style fix: don't use result of x&y as a boolean directly
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 7 Dec 2012 03:31:40 +0000 (19:31 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 7 Dec 2012 03:31:40 +0000 (19:31 -0800)
src/lib/dns/master_loader.cc

index 60a97d6c041025024ffa47ef4c03bc26a7c82b0a..3bda359b660d160643dca724c9bb002e843c7427 100644 (file)
@@ -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 {