]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5213] Some cosmetic fixes
authorFrancis Dupont <fdupont@isc.org>
Tue, 18 Apr 2017 07:52:23 +0000 (09:52 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 18 Apr 2017 07:52:23 +0000 (09:52 +0200)
src/bin/dhcp4/ctrl_dhcp4_srv.cc
src/bin/dhcp4/ctrl_dhcp4_srv.h
src/bin/dhcp6/ctrl_dhcp6_srv.cc
src/bin/dhcp6/ctrl_dhcp6_srv.h

index 5971134f2146556bfdfa6aa0ff44744c7afa3830..9fc5a241e533312741c2ccc3ab6e760f60374b8a 100644 (file)
@@ -441,7 +441,7 @@ ControlledDhcpv4Srv::commandLeasesReclaimHandler(const string&,
 ConstElementPtr
 ControlledDhcpv4Srv::processCommand(const string& command,
                                     ConstElementPtr args) {
-    string txt = args? args->str() : "(none)";
+    string txt = args ? args->str() : "(none)";
 
     LOG_DEBUG(dhcp4_logger, DBG_DHCP4_COMMAND, DHCP4_COMMAND_RECEIVED)
               .arg(command).arg(txt);
index 5f7873c3f487654f48b5b53dd0dd4dfcabafeb27..b0c1a89d2f93a2e85d902c496401208526df40c4 100644 (file)
@@ -40,7 +40,7 @@ public:
     /// This method may throw if initialization fails.
     void init(const std::string& config_file);
 
-    /// @brief loads specific config file
+    /// @brief Loads specific config file
     ///
     /// This utility method is called whenever we know a filename of the config
     /// and need to load it. It calls config-set command once the content of
index 697eff51db8c29f5cefa653d9165e58a26e7dd52..8fceb3324c8dc099ab3b1a08c9469bd1d09d9493 100644 (file)
@@ -69,6 +69,7 @@ ControlledDhcpv6Srv* ControlledDhcpv6Srv::server_ = NULL;
 /// the JSON configuration file.
 ///
 /// @param file_name Configuration file location.
+/// @return status of the command
 ConstElementPtr
 ControlledDhcpv6Srv::loadConfigFile(const std::string& file_name) {
     // This is a configuration backend implementation that reads the
@@ -154,7 +155,7 @@ ControlledDhcpv6Srv::init(const std::string& file_name) {
 
     // We don't need to call openActiveSockets() or startD2() as these
     // methods are called in processConfig() which is called by
-    // processCommand("reload-config", ...)
+    // processCommand("config-set", ...)
 
     // Set signal handlers. When the SIGHUP is received by the process
     // the server reconfiguration will be triggered. When SIGTERM or
@@ -442,7 +443,7 @@ ControlledDhcpv6Srv::commandLeasesReclaimHandler(const string&,
 isc::data::ConstElementPtr
 ControlledDhcpv6Srv::processCommand(const std::string& command,
                                     isc::data::ConstElementPtr args) {
-    string txt = args? args->str() : "(none)";
+    string txt = args ? args->str() : "(none)";
 
     LOG_DEBUG(dhcp6_logger, DBG_DHCP6_COMMAND, DHCP6_COMMAND_RECEIVED)
               .arg(command).arg(txt);
index 608a0052f2e9e8aa13070a009f1e5eacc9599c9f..2bc8073bb3579de65be08b6f2ac00ba81771788c 100644 (file)
@@ -40,7 +40,7 @@ public:
     /// This method may throw if initialization fails.
     void init(const std::string& config_file);
 
-    /// @brief loads specific configuration file
+    /// @brief Loads specific configuration file
     ///
     /// This utility method is called whenever we know a filename of the config
     /// and need to load it. It calls config-set command once the content of