]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#591,!#313] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Thu, 2 May 2019 17:33:03 +0000 (13:33 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 2 May 2019 17:33:03 +0000 (13:33 -0400)
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc

index b8754cfa4a206d1950b96056b9225be1fbc4a61d..59c9eccfcaf8bf8391bd45a23984fc8484d38fb1 100644 (file)
@@ -255,7 +255,7 @@ public:
                        std::string subnet_txt, SubnetID subnet_id,
                        CfgConsistency::LeaseSanity sanity,
                        bool exp_present, SubnetID exp_id,
-                       unsigned int prefix_len=0) {
+                       unsigned int prefix_len = 0) {
 
         // Create the subnet and add it to configuration.
         if (!subnet_txt.empty()) {
@@ -267,7 +267,7 @@ public:
 
         file_content << v6_hdr_ << lease << ",dd:de:ba:0d:1b:2e,"
                      << "300,300," << static_cast<int>(lease_id) << ",150,"
-                     << static_cast<int>(prefix_len > 0 ? Lease::TYPE_PD : Lease::TYPE_NA)
+                     << (prefix_len > 0 ? Lease::TYPE_PD : Lease::TYPE_NA)
                      << ",8," << prefix_len << ",0,0,,,1,\n";
 
         ASSERT_NO_THROW(CfgMgr::instance().getStagingCfg()->getConsistency()