From: Tomek Mrugalski Date: Wed, 24 Aug 2016 21:00:38 +0000 (+0200) Subject: [4294] Compilation fix, minor clean ups X-Git-Tag: trac4631_base~6^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9290dab9955fc3000402536976c75da1c486a573;p=thirdparty%2Fkea.git [4294] Compilation fix, minor clean ups --- diff --git a/src/lib/dhcpsrv/cfg_subnets4.cc b/src/lib/dhcpsrv/cfg_subnets4.cc index 5dcb413d4e..f1c7a8f658 100644 --- a/src/lib/dhcpsrv/cfg_subnets4.cc +++ b/src/lib/dhcpsrv/cfg_subnets4.cc @@ -269,7 +269,6 @@ CfgSubnets4::updateStatistics() { // Only recount the stats if we have subnets. if (subnets_.begin() != subnets_.end()) { - //LeaseMgrFactory::instance().recountAddressStats4(); LeaseMgrFactory::instance().recountLeaseStats4(); } } diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.cc b/src/lib/dhcpsrv/memfile_lease_mgr.cc index bfc57dccbf..79c4020f90 100644 --- a/src/lib/dhcpsrv/memfile_lease_mgr.cc +++ b/src/lib/dhcpsrv/memfile_lease_mgr.cc @@ -259,7 +259,7 @@ LFCSetup::getExitStatus() const { /// @brief Base Memfile derivation of the statistical lease data query /// -/// This class provides the functionality such as results storgae and row +/// This class provides the functionality such as results storage and row /// fetching common to fulfilling the statistical lease data query. /// class MemfileLeaseStatsQuery : public LeaseStatsQuery { diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.cc b/src/lib/dhcpsrv/pgsql_lease_mgr.cc index 6b2bb5920e..3ea7475484 100644 --- a/src/lib/dhcpsrv/pgsql_lease_mgr.cc +++ b/src/lib/dhcpsrv/pgsql_lease_mgr.cc @@ -765,7 +765,6 @@ public: } // Fetch the lease state. - uint32_t state; PgSqlExchange::getColumnValue(*result_set_, next_row_ , col, row.lease_state_); ++col;