Commit 369ff550 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5468] A few trivial fixes

parent 24e09f38
......@@ -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
......
......@@ -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)));
}
......
......@@ -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");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment