From: Andrei Pavel Date: Tue, 10 Jan 2017 10:16:47 +0000 (+0200) Subject: Comments and unused declaration X-Git-Tag: trac5524_base~3^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02db2cef244adb1dc67116166948ffb2a53231e;p=thirdparty%2Fkea.git Comments and unused declaration --- diff --git a/src/bin/dhcp4/kea_controller.cc b/src/bin/dhcp4/kea_controller.cc index 4f68ffb062..bda2c132d4 100644 --- a/src/bin/dhcp4/kea_controller.cc +++ b/src/bin/dhcp4/kea_controller.cc @@ -25,7 +25,7 @@ namespace { /// This function is used to both configure the DHCP server on its startup /// and dynamically reconfigure the server when SIGHUP signal is received. /// -/// It fetches DHCPv6 server's configuration from the 'Dhcp4' section of +/// It fetches DHCPv4 server's configuration from the 'Dhcp4' section of /// the JSON configuration file. /// /// @param file_name Configuration file location. @@ -40,7 +40,6 @@ void configure(const std::string& file_name) { isc::data::ConstElementPtr json; isc::data::ConstElementPtr dhcp4; - isc::data::ConstElementPtr logger; isc::data::ConstElementPtr result; // Basic sanity check: file name must not be empty. @@ -74,8 +73,8 @@ void configure(const std::string& file_name) { CfgMgr::instance().getStagingCfg()); // Apply the new logger configuration to log4cplus. It is done before - // commit in case something goes wrong and before configuration load - // in order to log possible configuration problems. + // commit in case something goes wrong and before configuration load in + // order to log possible configuration problems. CfgMgr::instance().getStagingCfg()->applyLoggingCfg(); // Get Dhcp4 component from the config diff --git a/src/bin/dhcp6/kea_controller.cc b/src/bin/dhcp6/kea_controller.cc index cb46299c15..961faf15e0 100644 --- a/src/bin/dhcp6/kea_controller.cc +++ b/src/bin/dhcp6/kea_controller.cc @@ -45,7 +45,6 @@ void configure(const std::string& file_name) { isc::data::ConstElementPtr json; isc::data::ConstElementPtr dhcp6; - isc::data::ConstElementPtr logger; isc::data::ConstElementPtr result; // Basic sanity check: file name must not be empty. @@ -82,8 +81,8 @@ void configure(const std::string& file_name) { CfgMgr::instance().getStagingCfg()); // Apply the new logger configuration to log4cplus. It is done before - // commit in case something goes wrong and before configuration load - // in order to log possible configuration problems. + // commit in case something goes wrong and before configuration load in + // order to log possible configuration problems. CfgMgr::instance().getStagingCfg()->applyLoggingCfg(); // Get Dhcp6 component from the config