]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5468] A few trivial fixes
authorFrancis Dupont <fdupont@isc.org>
Fri, 12 Jan 2018 05:11:04 +0000 (06:11 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 12 Jan 2018 05:11:04 +0000 (06:11 +0100)
src/lib/dhcpsrv/cql_lease_mgr.h
src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/mysql_lease_mgr.cc

index 4f5e24ea3eccaf439394b25bcca991e033d58e99..f8ffd82d68807983cc1a2e029f637d6db8efccb7 100644 (file)
@@ -183,18 +183,6 @@ public:
                                 const HWAddr& hwaddr,
                                 SubnetID subnet_id) const override;
 
-    /// @brief Returns all IPv4 leases for the particular subnet identifier.
-    ///
-    /// @param subnet_id subnet identifier.
-    ///
-    /// @return Lease collection (may be empty if no IPv4 lease found).
-    virtual Lease4Collection getLeases4(SubnetID subnet_id) const;
-
-    /// @brief Returns all IPv4 leases.
-    ///
-    /// @return Lease collection (may be empty if no IPv4 lease found).
-    virtual Lease4Collection getLeases4() const;
-
     /// @brief Returns existing IPv4 lease for specified client-id
     ///
     /// There can be at most one lease for a given HW address in a single
index d5f8ef743d6f0eba1b909b9850a9473251e676be..1a26b44668b2a6c9e97f056eb5e1cb14196c9ba5 100644 (file)
@@ -755,7 +755,7 @@ Lease4Collection
 Memfile_LeaseMgr::getLeases4() const {
    LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET4);
 
-    Lease4Collection collection;
+   Lease4Collection collection;
    for (auto lease = storage4_.begin(); lease != storage4_.end(); ++lease ) {
        collection.push_back(Lease4Ptr(new Lease4(**lease)));
    }
index 4c4fe3c5f7d182da84cf13fa3aea68af627e6474..8c70a60afa2530484766f99a997cdc7954ead948 100644 (file)
@@ -1509,7 +1509,7 @@ void MySqlLeaseMgr::getLeaseCollection(StatementIndex stindex,
 
     if (bind) {
         // Bind the selection parameters to the statement
-        int status = mysql_stmt_bind_param(conn_.statements_[stindex], bind);
+        status = mysql_stmt_bind_param(conn_.statements_[stindex], bind);
         checkError(status, stindex, "unable to bind WHERE clause parameter");
     }