]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2815] Remove trailing whitespace
authorSlawek Figiel <slawek@isc.org>
Wed, 24 May 2023 14:12:53 +0000 (16:12 +0200)
committerSlawek Figiel <slawek@isc.org>
Thu, 25 May 2023 11:29:59 +0000 (13:29 +0200)
src/lib/dhcpsrv/cfg_hosts.cc
src/lib/dhcpsrv/host_mgr.cc
src/lib/dhcpsrv/hosts_messages.mes
src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc
src/lib/dhcpsrv/testutils/generic_host_data_source_unittest.cc

index 22b48aa3f3b494e206b095d9b746cbf9a3170dfb..a8c52eff74b23cdb90b903e591d9e9de189f4c4e 100644 (file)
@@ -1141,7 +1141,7 @@ CfgHosts::del4(const SubnetID& subnet_id,
     const auto t = boost::make_tuple(std::vector<uint8_t>(identifier_begin,
                                                     identifier_begin + identifier_len),
                                                     identifier_type);
-    const auto& range = idx.equal_range(t);    
+    const auto& range = idx.equal_range(t);
     size_t erased = 0;
     for (auto key = range.first; key != range.second;) {
         if ((*key)->getIPv4SubnetID() != subnet_id) {
@@ -1191,7 +1191,7 @@ CfgHosts::del6(const SubnetID& subnet_id,
     const auto t = boost::make_tuple(std::vector<uint8_t>(identifier_begin,
                                                           identifier_begin + identifier_len),
                                                           identifier_type);
-    const auto& range = idx.equal_range(t);    
+    const auto& range = idx.equal_range(t);
     size_t erased_hosts = 0;
     size_t erased_reservations = 0;
     for (auto key = range.first; key != range.second;) {
index 1951e7d870fb95d138a2d94df095ae1ddb3a4224..f5a41f23671e49869d3cb0e2ea623ba20b581a87 100644 (file)
@@ -145,7 +145,7 @@ ConstHostCollection
 HostMgr::getAll(const Host::IdentifierType& identifier_type,
                 const uint8_t* identifier_begin,
                 const size_t identifier_len) const {
-    return getAll(identifier_type, identifier_begin, identifier_len, 
+    return getAll(identifier_type, identifier_begin, identifier_len,
                   HostMgrOperationTarget::ALL_SOURCES);
 }
 
@@ -751,7 +751,7 @@ HostMgr::add(const HostPtr& host, const HostMgrOperationTarget target) {
         if (alternate_sources_.empty() && !(target & HostMgrOperationTarget::PRIMARY_SOURCE)) {
             isc_throw(NoHostDataSourceManager, "Unable to add new host because there is "
                     "no hosts-database configured.");
-            
+
         }
 
         for (auto source : alternate_sources_) {
@@ -886,7 +886,7 @@ HostMgr::update(HostPtr const& host, const HostMgrOperationTarget target) {
             isc_throw(NoHostDataSourceManager,
                     "Unable to update existing host because there is no hosts-database configured.");
         }
-    
+
         for (HostDataSourcePtr const& source : alternate_sources_) {
             source->update(host);
         }
index 3c671c8688ee6257ecdde1291f8748f527a157c6..8d897eead86aa966b69f5b467247844abc168726 100644 (file)
@@ -41,7 +41,7 @@ address.
 % HOSTS_CFG_DEL4 deleted %1 host(s) for subnet id %2 and identifier %3
 This debug message is issued when IPv4 reservations are deleted for the specified
 subnet and identifier. The first argument specifies how many hosts have been
-deleted. The second argument is the subnet identifier. The third argument is 
+deleted. The second argument is the subnet identifier. The third argument is
 the identifier.
 
 % HOSTS_CFG_DEL6 deleted %1 host(s) having %2 IPv6 reservation(s) for subnet id %3 and identifier %4
index 337a7200dbe626594d6a2ef812f9bc25517dc154..58c0d03a4f25b910e377dd8e797040943d2c772f 100644 (file)
@@ -507,7 +507,7 @@ TEST_F(CfgHostsTest, deleteForIPv4) {
     // Make sure the hosts and IP reservations were added.
     ASSERT_EQ(host_count, hosts_by_subnet.size());
     ASSERT_EQ(1, hosts_by_address.size());
-    
+
     // Delete one host.
     EXPECT_TRUE(cfg.del(subnet_id, address));
 
@@ -536,7 +536,7 @@ TEST_F(CfgHostsTest, deleteForIPv6) {
                                        increase(IOAddress(address), i)));
         cfg.add(host);
     }
-    
+
 
     // Get all inserted hosts.
     auto hosts_by_subnet_and_address = cfg.getAll6(subnet_id, address);
@@ -544,7 +544,7 @@ TEST_F(CfgHostsTest, deleteForIPv6) {
     // Make sure the hosts and IP reservations were added.
     ASSERT_EQ(1, hosts_by_subnet_and_address.size());
     ASSERT_EQ(host_count, hosts_by_subnet.size());
-    
+
     // Delete one host.
     EXPECT_TRUE(cfg.del(subnet_id, address));
 
@@ -616,7 +616,7 @@ TEST_F(CfgHostsTest, del4) {
     // Delete one host.
     EXPECT_TRUE(cfg.del4(subnet_id, Host::IdentifierType::IDENT_DUID,
                          &duids_[host_id]->getDuid()[0], duids_[host_id]->getDuid().size()));
-    
+
     // Check if the host is actually deleted.
     hosts_by_subnet = cfg.getAll4(subnet_id);
     hosts_by_address = cfg.getAll4(increase(address, host_id));
@@ -675,7 +675,7 @@ TEST_F(CfgHostsTest, del6) {
     // Delete one host.
     EXPECT_TRUE(cfg.del6(subnet_id, Host::IdentifierType::IDENT_DUID,
                          &duids_[host_id]->getDuid()[0], duids_[host_id]->getDuid().size()));
-    
+
     // Check if the host is actually deleted.
     hosts_by_subnet = cfg.getAll6(subnet_id);
     hosts_by_address = cfg.getAll6(increase(address, host_id));
index ee2c5851e10d3c950dadc494da343caa121a057e..26ef3667fd7643d71ea7717da617256c0a3ea483 100644 (file)
@@ -4489,7 +4489,7 @@ HostMgrTest::testAdd(BaseHostDataSource& data_source1,
     HostMgr::instance().add(host, HostMgrOperationTarget::UNSPECIFIED_SOURCE);
 
     // Verify the hosts were added.
-    // ALL_SOURCES + PRIMARY_SOURCE targets for IPv4 and IPv6. 
+    // ALL_SOURCES + PRIMARY_SOURCE targets for IPv4 and IPv6.
     size_t hosts_in_primary_source = 2 * 2 * (is_first_source_primary || is_second_source_primary);
     // Default + ALL_SOURCES + ALTERNATE_SOURCES targets for IPv4 and IPv6.
     size_t hosts_in_alternate_sources = 3 * 2 * (!is_first_source_primary || !is_second_source_primary);