From: Francis Dupont Date: Fri, 12 Jun 2020 14:22:18 +0000 (+0200) Subject: [#1245] Addressed comments, todo unittests X-Git-Tag: Kea-1.7.9~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e15a399206af8aaf23e95889fbbb69be7d175fc;p=thirdparty%2Fkea.git [#1245] Addressed comments, todo unittests --- diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc index 93a6623719..8c0bae4c85 100644 --- a/src/bin/dhcp4/json_config_parser.cc +++ b/src/bin/dhcp4/json_config_parser.cc @@ -511,7 +511,7 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set, // This parser is used in several places. Dhcp4ConfigParser global_parser; - // Keep relative orders of shared networks and subnets. + // Keep relative orders of shared networks and subnets. ConstElementPtr shared_networks = mutable_cfg->get("shared-networks"); if (shared_networks) { parameter_name = "shared-networks"; @@ -559,7 +559,7 @@ configureDhcp4Server(Dhcpv4Srv& server, isc::data::ConstElementPtr config_set, // Make parsers grouping. ConfigPair config_pair; const std::map& values_map = - mutable_cfg->mapValue(); + mutable_cfg->mapValue(); BOOST_FOREACH(config_pair, values_map) { parameter_name = config_pair.first; diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index a525f257fd..e3a3227b42 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/src/bin/dhcp6/json_config_parser.cc @@ -635,7 +635,7 @@ configureDhcp6Server(Dhcpv6Srv& server, isc::data::ConstElementPtr config_set, // This parser is used in several places. Dhcp6ConfigParser global_parser; - // Keep relative orders of shared networks and subnets. + // Keep relative orders of shared networks and subnets. ConstElementPtr shared_networks = mutable_cfg->get("shared-networks"); if (shared_networks) { parameter_name = "shared-networks"; @@ -696,7 +696,7 @@ configureDhcp6Server(Dhcpv6Srv& server, isc::data::ConstElementPtr config_set, parameter_name = config_pair.first; - // This is converted to SimpleParser and is handled already above. + // This are converted to SimpleParser and are handled already above. if ((config_pair.first == "data-directory") || (config_pair.first == "option-def") || (config_pair.first == "option-data") ||