Browse Source

[5122] spelling & find -> get

Francis Dupont 8 years ago
parent
commit
0878ad28fa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/dhcp4/json_config_parser.cc

+ 2 - 2
src/bin/dhcp4/json_config_parser.cc

@@ -197,7 +197,7 @@ protected:
         subnet_ = subnet4;
         subnet_ = subnet4;
 
 
         // Set the match-client-id value for the subnet. It is always present.
         // Set the match-client-id value for the subnet. It is always present.
-        // If not explicitly specified, the default value was filed in when
+        // If not explicitly specified, the default value was filled in when
         // SimpleParser4::setAllDefaults was called.
         // SimpleParser4::setAllDefaults was called.
         bool match_client_id = getBoolean(params, "match-client-id");
         bool match_client_id = getBoolean(params, "match-client-id");
         subnet4->setMatchClientId(match_client_id);
         subnet4->setMatchClientId(match_client_id);
@@ -212,7 +212,7 @@ protected:
                 subnet4->setSiaddr(IOAddress(next_server));
                 subnet4->setSiaddr(IOAddress(next_server));
             }
             }
         } catch (...) {
         } catch (...) {
-            ConstElementPtr next = params->find("next-server");
+            ConstElementPtr next = params->get("next-server");
             string pos("(missing)");
             string pos("(missing)");
             if (next)
             if (next)
                 pos = next->getPosition().str();
                 pos = next->getPosition().str();