Commit 6a8228eb authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2324] Corrected some minor typos.

parent cb330a06
...@@ -40,7 +40,7 @@ AllocEngine::IterativeAllocator::increaseAddress(const isc::asiolink::IOAddress& ...@@ -40,7 +40,7 @@ AllocEngine::IterativeAllocator::increaseAddress(const isc::asiolink::IOAddress&
len = 16; len = 16;
} }
for (int i = len -1; i >=0; --i) { for (int i = len - 1; i >= 0; --i) {
packed[i]++; packed[i]++;
if (packed[i] != 0) { if (packed[i] != 0) {
break; break;
...@@ -56,7 +56,7 @@ AllocEngine::IterativeAllocator::pickAddress(const Subnet6Ptr& subnet, ...@@ -56,7 +56,7 @@ AllocEngine::IterativeAllocator::pickAddress(const Subnet6Ptr& subnet,
const DuidPtr&, const DuidPtr&,
const IOAddress&) { const IOAddress&) {
// Let's get the last allocated address. It is usually be set correctly, // Let's get the last allocated address. It is usually set correctly,
// but there are times when it won't be (like after removing a pool or // but there are times when it won't be (like after removing a pool or
// perhaps restaring the server). // perhaps restaring the server).
IOAddress last = subnet->getLastAllocated(); IOAddress last = subnet->getLastAllocated();
...@@ -92,7 +92,7 @@ AllocEngine::IterativeAllocator::pickAddress(const Subnet6Ptr& subnet, ...@@ -92,7 +92,7 @@ AllocEngine::IterativeAllocator::pickAddress(const Subnet6Ptr& subnet,
IOAddress next = increaseAddress(last); // basically addr++ IOAddress next = increaseAddress(last); // basically addr++
if ((*it)->inRange(next)) { if ((*it)->inRange(next)) {
// the next one it in pool as well, so we haven't hit pool boundary yet // the next one is in the pool as well, so we haven't hit pool boundary yet
subnet->setLastAllocated(next); subnet->setLastAllocated(next);
return (next); return (next);
} }
......
...@@ -171,7 +171,7 @@ protected: ...@@ -171,7 +171,7 @@ protected:
/// ///
/// @param engine_type selects allocation algorithm /// @param engine_type selects allocation algorithm
/// @param attempts number of attempts for each lease allocation before /// @param attempts number of attempts for each lease allocation before
/// we give up (0 mean unlimited) /// we give up (0 means unlimited)
AllocEngine(AllocType engine_type, unsigned int attempts); AllocEngine(AllocType engine_type, unsigned int attempts);
/// @brief Allocates an IPv6 lease /// @brief Allocates an IPv6 lease
......
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