]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5522] Removed whitespace errors in a couple of files.
authorMarcin Siodelski <marcin@isc.org>
Fri, 2 Mar 2018 09:03:47 +0000 (10:03 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 2 Mar 2018 09:03:47 +0000 (10:03 +0100)
src/lib/dhcp/libdhcp++.cc
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in

index da85930362d4f8e141023694577e6bd3cb0a9900..b483bdacfe97e62b5ab58153162352dfc467c3f9 100644 (file)
@@ -685,7 +685,7 @@ size_t LibDHCP::unpackVendorOptions4(const uint32_t vendor_id, const OptionBuffe
     size_t offset = 0;
 
     // Get the list of standard option definitions.
-    const OptionDefContainerPtr& option_defs = LibDHCP::getVendorOption4Defs(vendor_id);
+    const OptionDefContainerPtr& option_defs = LibDHCP::1getVendorOption4Defs(vendor_id);
     // Get the search index #1. It allows to search for option definitions
     // using option code.
     const OptionDefContainerTypeIndex* idx = NULL;
index 02a8e8512ed442e68ae6276f020d762873d5843a..c84633895ac38a935db979263bc6174bf87ed678 100644 (file)
@@ -257,13 +257,13 @@ GenericHostDataSourceTest::testBasic4(const Host::IdentifierType& id) {
     HostDataSourceUtils::compareHosts(host, from_hds);
 }
 
-void 
+void
 GenericHostDataSourceTest::testMaxSubnetId4() {
     std::vector<uint8_t> ident;
 
     ident = HostDataSourceUtils::generateIdentifier();
     SubnetID subnet_id4 = numeric_limits<uint32_t>::max();
-    HostPtr host(new Host(&ident[0], ident.size(), Host::IDENT_DUID, 
+    HostPtr host(new Host(&ident[0], ident.size(), Host::IDENT_DUID,
                           subnet_id4, 0, IOAddress("0.0.0.0")));
 
     ASSERT_NO_THROW(addTestOptions(host, true, DHCP4_ONLY));
@@ -278,7 +278,7 @@ GenericHostDataSourceTest::testMaxSubnetId4() {
     ASSERT_NO_FATAL_FAILURE(HostDataSourceUtils::compareHosts(host, host_by_id));
 
     // Now try to delete it: del4(subnet4-id, identifier-type, identifier)
-    EXPECT_TRUE(hdsptr_->del4(subnet_id4, Host::IDENT_DUID, &ident[0], 
+    EXPECT_TRUE(hdsptr_->del4(subnet_id4, Host::IDENT_DUID, &ident[0],
                               ident.size()));
 
     host_by_id = hdsptr_->get4(subnet_id4, host->getIdentifierType(),
@@ -293,7 +293,7 @@ void GenericHostDataSourceTest::testMaxSubnetId6() {
 
     ident = HostDataSourceUtils::generateIdentifier();
     SubnetID subnet_id6 = numeric_limits<uint32_t>::max();
-    HostPtr host(new Host(&ident[0], ident.size(), Host::IDENT_DUID, 
+    HostPtr host(new Host(&ident[0], ident.size(), Host::IDENT_DUID,
                           0, subnet_id6, IOAddress("0.0.0.0")));
 
     ASSERT_NO_THROW(addTestOptions(host, true, DHCP6_ONLY));
@@ -308,7 +308,7 @@ void GenericHostDataSourceTest::testMaxSubnetId6() {
     ASSERT_NO_FATAL_FAILURE(HostDataSourceUtils::compareHosts(host, host_by_id));
 
     // Now try to delete it: del6(subnet6-id, identifier-type, identifier)
-    EXPECT_TRUE(hdsptr_->del6(subnet_id6, Host::IDENT_DUID, &ident[0], 
+    EXPECT_TRUE(hdsptr_->del6(subnet_id6, Host::IDENT_DUID, &ident[0],
                               ident.size()));
 
     host_by_id = hdsptr_->get4(subnet_id6, host->getIdentifierType(),
@@ -540,7 +540,7 @@ GenericHostDataSourceTest::testUserContext(ConstElementPtr user_context) {
     subnet = host->getIPv6SubnetID();
 
     ASSERT_NO_THROW(hdsptr_->add(host));
-    
+
     from_hds = hdsptr_->get6(subnet, Host::IDENT_HWADDR,
                              &host->getIdentifier()[0],
                              host->getIdentifier().size());
index d14e3753e89c3b82a684243635fead70c9cc60d1..661388da5d0ed74baa61074fd30b9f66728b9b14 100644 (file)
@@ -536,7 +536,7 @@ UPDATE schema_version
 
 -- Upgrade to schema 3.3 begins here:
 
--- Change subnet ID columns type to BIGINT to match lease4/6 tables 
+-- Change subnet ID columns type to BIGINT to match lease4/6 tables
 ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
 ALTER TABLE hosts ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;
 
index b8c72480164b7caab5c2809e2013cf26f8f5ee16..76f4683ea86ff98eb52d5bdc708a5d5af34a28d1 100644 (file)
@@ -19,7 +19,7 @@ psql "$@" >/dev/null <<EOF
 
 START TRANSACTION;
 
--- Change subnet ID columns type to BIGINT to match lease4/6 tables 
+-- Change subnet ID columns type to BIGINT to match lease4/6 tables
 ALTER TABLE hosts ALTER COLUMN dhcp4_subnet_id TYPE BIGINT;
 ALTER TABLE hosts ALTER COLUMN dhcp6_subnet_id TYPE BIGINT;