diff --git a/src/lib/asiolink/io_address.cc b/src/lib/asiolink/io_address.cc index b17ec63acf..5e4b86498f 100644 --- a/src/lib/asiolink/io_address.cc +++ b/src/lib/asiolink/io_address.cc @@ -62,8 +62,7 @@ IOAddress IOAddress::fromBytes(short family, const uint8_t* data) { if (data == NULL) { isc_throw(BadValue, "NULL pointer received."); - } else - if ( (family != AF_INET) && (family != AF_INET6) ) { + } else if ((family != AF_INET) && (family != AF_INET6)) { isc_throw(BadValue, "Invalid family type. Only AF_INET and AF_INET6" << "are supported"); } diff --git a/src/lib/asiolink/io_address.h b/src/lib/asiolink/io_address.h index d08753b5cf..fe61b4b411 100644 --- a/src/lib/asiolink/io_address.h +++ b/src/lib/asiolink/io_address.h @@ -89,7 +89,7 @@ public: /// /// This constructor is intended to be used when constructing /// IPv4 address out of uint32_t type. Passed value must be in - /// network byte order + /// host byte order. /// /// @param v4address IPv4 address represented by uint32_t IOAddress(uint32_t v4address);