summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/hwaddr.cc
diff options
context:
space:
mode:
authorStephen Morris <stephen@isc.org>2013-04-09 13:26:31 +0200
committerStephen Morris <stephen@isc.org>2013-04-09 13:26:31 +0200
commit91a0d273da950aac6348bbc900ceca502a6974db (patch)
treecc31982bbc6734f92ba716f8581efdbf95a2d313 /src/lib/dhcp/hwaddr.cc
parent[2837] Addressed review comments. (diff)
downloadkea-91a0d273da950aac6348bbc900ceca502a6974db.tar.xz
kea-91a0d273da950aac6348bbc900ceca502a6974db.zip
[2837] Fixed omissions from previous review corrections
Added braces to a single-line "if" statement. Also corrected some comments and removed trailing spaces from some statements.
Diffstat (limited to 'src/lib/dhcp/hwaddr.cc')
-rw-r--r--src/lib/dhcp/hwaddr.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/dhcp/hwaddr.cc b/src/lib/dhcp/hwaddr.cc
index a7ec30e1da..eb23b44dad 100644
--- a/src/lib/dhcp/hwaddr.cc
+++ b/src/lib/dhcp/hwaddr.cc
@@ -30,15 +30,16 @@ HWAddr::HWAddr()
HWAddr::HWAddr(const uint8_t* hwaddr, size_t len, uint8_t htype)
:hwaddr_(hwaddr, hwaddr + len), htype_(htype) {
if (len > MAX_HWADDR_LEN) {
- isc_throw(InvalidParameter, "hwaddr length exceeds MAX_HWADDR_LEN");
+ isc_throw(InvalidParameter, "hwaddr length exceeds MAX_HWADDR_LEN");
}
}
HWAddr::HWAddr(const std::vector<uint8_t>& hwaddr, uint8_t htype)
:hwaddr_(hwaddr), htype_(htype) {
- if (hwaddr.size() > MAX_HWADDR_LEN)
- isc_throw(InvalidParameter,
- "address vector size exceeds MAX_HWADDR_LEN");
+ if (hwaddr.size() > MAX_HWADDR_LEN) {
+ isc_throw(InvalidParameter,
+ "address vector size exceeds MAX_HWADDR_LEN");
+ }
}
std::string HWAddr::toText() const {
@@ -58,7 +59,7 @@ std::string HWAddr::toText() const {
}
bool HWAddr::operator==(const HWAddr& other) const {
- return ((this->htype_ == other.htype_) &&
+ return ((this->htype_ == other.htype_) &&
(this->hwaddr_ == other.hwaddr_));
}