Browse Source

[1747] minor editorial fixes: brace position, fold long lines, redundant space

JINMEI Tatuya 13 years ago
parent
commit
961f28cdfb
2 changed files with 7 additions and 6 deletions
  1. 3 2
      src/bin/auth/query.cc
  2. 4 4
      src/bin/auth/tests/query_unittest.cc

+ 3 - 2
src/bin/auth/query.cc

@@ -543,13 +543,14 @@ Query::process(datasrc::DataSourceClient& datasrc_client,
 void
 Query::initialize(datasrc::DataSourceClient& datasrc_client,
                   const isc::dns::Name qname, const isc::dns::RRType qtype,
-                  isc::dns::Message& response, bool dnssec) {
+                  isc::dns::Message& response, bool dnssec)
+{
     datasrc_client_ = &datasrc_client;
     qname_ = qname;
     qtype_ = qtype;
     response_ = &response;
     dnssec_ = dnssec;
-    dnssec_opt_ = (dnssec ?  isc::datasrc::ZoneFinder::FIND_DNSSEC :
+    dnssec_opt_ = (dnssec ? isc::datasrc::ZoneFinder::FIND_DNSSEC :
                    isc::datasrc::ZoneFinder::FIND_DEFAULT);
 }
 

+ 4 - 4
src/bin/auth/tests/query_unittest.cc

@@ -2142,8 +2142,8 @@ TEST_F(QueryTest, dsNoZone) {
 // DS query for a "grandchild" zone.  This should result in normal
 // delegation (unless this server also has authority of the grandchild zone).
 TEST_F(QueryTest, dsAtGrandParent) {
-    query.process(memory_client, Name("grand.delegation.example.com"), RRType::DS(),
-                  response, true);
+    query.process(memory_client, Name("grand.delegation.example.com"),
+                  RRType::DS(), response, true);
     responseCheck(response, Rcode::NOERROR(), 0, 0, 6, 6, NULL,
                   (string(delegation_txt) + string(delegation_ds_txt) +
                    "delegation.example.com. 3600 IN RRSIG " +
@@ -2213,8 +2213,8 @@ TEST_F(QueryTest, nxrrsetWithNSEC3) {
 
     // NXRRSET with DNSSEC proof.  We should have SOA, NSEC3 that proves the
     // NXRRSET and their RRSIGs.
-    query.process(memory_client, Name("www.example.com"), RRType::TXT(), response,
-                  true);
+    query.process(memory_client, Name("www.example.com"), RRType::TXT(),
+                  response, true);
 
     responseCheck(response, Rcode::NOERROR(), AA_FLAG, 0, 4, 0, NULL,
                   (string(soa_txt) + string("example.com. 3600 IN RRSIG ") +