Browse Source

[1793] Minor editorial fixes

Michal 'vorner' Vaner 13 years ago
parent
commit
52707b1951
2 changed files with 5 additions and 4 deletions
  1. 2 2
      src/bin/auth/command.cc
  2. 3 2
      src/bin/auth/tests/command_unittest.cc

+ 2 - 2
src/bin/auth/command.cc

@@ -270,7 +270,7 @@ private:
         // Unfortunately, we need to walk the list to find the correct data
         // source.
         // TODO: Make it named sets. These lists are uncomfortable.
-        for (size_t i(0); i < config->size(); ++ i) {
+        for (size_t i(0); i < config->size(); ++i) {
             // We use the getValue to get defaults as well
             const ConstElementPtr dsrc_config(config->get(i));
             const ConstElementPtr class_config(dsrc_config->get("class"));
@@ -294,7 +294,7 @@ private:
         }
 
         // Now we need to walk the zones and find the correct one.
-        for (size_t i(0); i < zone_list->size(); ++ i) {
+        for (size_t i(0); i < zone_list->size(); ++i) {
             const ConstElementPtr zone_config(zone_list->get(i));
             if (Name(zone_config->get("origin")->stringValue()) == origin_) {
                 // The origins are the same, so we consider this config to be

+ 3 - 2
src/bin/auth/tests/command_unittest.cc

@@ -56,8 +56,6 @@ using namespace isc::auth::unittest;
 
 namespace {
 
-const char* const SPEC_FILE = AUTH_OBJ_DIR "/auth.spec";
-
 class AuthCommandTest : public ::testing::Test {
 protected:
     AuthCommandTest() :
@@ -262,6 +260,8 @@ TEST_F(AuthCommandTest,
 #endif
     )
 {
+    const char* const SPEC_FILE = AUTH_OBJ_DIR "/auth.spec";
+
     // Prepare the database first
     const string test_db = TEST_DATA_BUILDDIR "/auth_test.sqlite3.copied";
     const string bad_db = TEST_DATA_BUILDDIR "/does-not-exist.sqlite3";
@@ -319,6 +319,7 @@ TEST_F(AuthCommandTest,
         Element::fromJSON("{\"origin\": \"example.com\"}"));
     checkAnswer(1);
 
+    // The previous zone is not hurt in any way
     EXPECT_EQ(ZoneFinder::SUCCESS, server_.getInMemoryClient(RRClass::IN())->
               findZone(Name("example.org")).zone_finder->
               find(Name("example.org"), RRType::SOA())->code);