Browse Source

[5213] indent and untabily

Francis Dupont 8 years ago
parent
commit
79b5468afa

+ 5 - 2
src/bin/dhcp4/ctrl_dhcp4_srv.cc

@@ -21,6 +21,7 @@
 #include <signal.h>
 
 using namespace isc::data;
+using namespace isc::dhcp;
 using namespace isc::hooks;
 using namespace isc::config;
 using namespace isc::stats;
@@ -40,9 +41,11 @@ namespace {
 void signalHandler(int signo) {
     // SIGHUP signals a request to reconfigure the server.
     if (signo == SIGHUP) {
-        isc::dhcp::ControlledDhcpv4Srv::processCommand("config-reload", ConstElementPtr());
+        ControlledDhcpv4Srv::processCommand("config-reload",
+                                            ConstElementPtr());
     } else if ((signo == SIGTERM) || (signo == SIGINT)) {
-        isc::dhcp::ControlledDhcpv4Srv::processCommand("shutdown", ConstElementPtr());
+        ControlledDhcpv4Srv::processCommand("shutdown",
+                                            ConstElementPtr());
     }
 }
 

+ 2 - 2
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc

@@ -926,8 +926,8 @@ TEST_F(CtrlChannelDhcpv4SrvTest, configTest) {
 
     // Verify the configuration was successful.
     EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration seems sane. "
-	      "Control-socket, hook-libraries, and D2 configuration were "
-	      "sanity checked, but not applied.\" }",
+              "Control-socket, hook-libraries, and D2 configuration were "
+              "sanity checked, but not applied.\" }",
               response);
 
     // Check that the config was not applied

+ 5 - 4
src/bin/dhcp6/ctrl_dhcp6_srv.cc

@@ -22,6 +22,7 @@
 #include <signal.h>
 
 using namespace isc::config;
+using namespace isc::dhcp;
 using namespace isc::data;
 using namespace isc::hooks;
 using namespace isc::stats;
@@ -44,11 +45,11 @@ static const char* SERVER_DUID_FILE = "kea-dhcp6-serverid";
 void signalHandler(int signo) {
     // SIGHUP signals a request to reconfigure the server.
     if (signo == SIGHUP) {
-        isc::dhcp::ControlledDhcpv6Srv::processCommand("config-reload",
-                                                       ConstElementPtr());
+        ControlledDhcpv6Srv::processCommand("config-reload",
+                                            ConstElementPtr());
     } else if ((signo == SIGTERM) || (signo == SIGINT)) {
-        isc::dhcp::ControlledDhcpv6Srv::processCommand("shutdown",
-                                                       ConstElementPtr());
+        ControlledDhcpv6Srv::processCommand("shutdown",
+                                            ConstElementPtr());
     }
 }
 

+ 2 - 2
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc

@@ -650,8 +650,8 @@ TEST_F(CtrlChannelDhcpv6SrvTest, configTest) {
 
     // Verify the configuration was successful.
     EXPECT_EQ("{ \"result\": 0, \"text\": \"Configuration seems sane. "
-	      "Control-socket, hook-libraries, and D2 configuration were "
-	      "sanity checked, but not applied.\" }",
+              "Control-socket, hook-libraries, and D2 configuration were "
+              "sanity checked, but not applied.\" }",
               response);
 
     // Check that the config was not applied.