From: JINMEI Tatuya Date: Fri, 23 Mar 2012 00:52:23 +0000 (-0700) Subject: [1579] more editorial and style (guideline) fixes X-Git-Tag: trac2351_base~226^2~116^2~41^2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfd2aeefef39f064183c84c23451637247e32399;p=thirdparty%2Fkea.git [1579] more editorial and style (guideline) fixes --- diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc index 3eaa6ccb36..c2bc47a22c 100644 --- a/src/lib/datasrc/database.cc +++ b/src/lib/datasrc/database.cc @@ -922,8 +922,8 @@ DatabaseClient::Finder::findInternal(const Name& name, const RRType& type, const ZoneFinder::ResultContext result_context = findOnNameResult(name, type, options, is_origin, found, NULL, target); - if ((result_context.code & NXRRSET) || - (result_context.flags & RESULT_WILDCARD)) { + if ((result_context.code & NXRRSET) != 0 || + (result_context.flags & RESULT_WILDCARD) != 0) { return (ZoneFinder::ResultContext(result_context.code, result_context.rrset, (result_context.flags | @@ -939,11 +939,11 @@ DatabaseClient::Finder::findInternal(const Name& name, const RRType& type, // Did not find anything at all at the domain name, so check for // subdomains or wildcards. if (is_nsec3) { - // NSEC3 is used for this zonefile + // NSEC3 is used for this zone const ZoneFinder::ResultContext result_context = findNoNameResult(name, type, options, dresult, target); - if ((result_context.code & (NXRRSET | NXDOMAIN)) || - (result_context.flags & RESULT_WILDCARD)){ + if ((result_context.code & (NXRRSET | NXDOMAIN)) != 0 || + (result_context.flags & RESULT_WILDCARD) != 0) { // NXRRSET NXDOMAIN and wildcard should set RESULT_NSEC3_SIGNED return (ZoneFinder::ResultContext(result_context.code, result_context.rrset,