]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3074] io address comment correction
authorPiotrek Zadroga <piotrek@isc.org>
Tue, 9 Jan 2024 13:18:28 +0000 (14:18 +0100)
committerPiotrek Zadroga <piotrek@isc.org>
Tue, 9 Jan 2024 13:18:28 +0000 (14:18 +0100)
src/lib/asiolink/io_address.cc
src/lib/asiolink/io_address.h

index b17ec63acfa70658f088fc9e46d2ed202cfcb31d..5e4b86498f40a4dda7eba695a5e6e8a798a2f610 100644 (file)
@@ -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");
     }
index d08753b5cfab795cbf0c7cf22db9dbc6c573eb85..fe61b4b41177f5dea3f5b4e1e08d8e9f394ec9ae 100644 (file)
@@ -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);