]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4587] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Tue, 7 Jul 2026 17:14:33 +0000 (13:14 -0400)
committerRazvan Becheriu <razvan@isc.org>
Tue, 7 Jul 2026 18:53:40 +0000 (18:53 +0000)
minor clean ups

modified:   src/lib/dns/tests/rdata_unittest.cc
modified:   src/lib/util/str.h

src/lib/dns/tests/rdata_unittest.cc
src/lib/util/str.h

index d076ca18558d4dc460ddb5ce5848e5c57d57fea2..9ea41c634602020b6f8925f37ae47c2e508a10dd 100644 (file)
@@ -255,19 +255,10 @@ protected:
 string
 Rdata_Unknown_Test::getLongestRdataTxt() {
     ostringstream oss;
-
     oss << "\\# " << MAX_RDLENGTH << " ";
-#if 0
-    static_cast<void>(oss.fill('0'));
-    oss << right << hex;
-    for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
-        oss << setw(2) << (i & 0xff);
-    }
-#else
     for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
         oss << str::byteToHex(i);
     }
-#endif
 
     return (oss.str());
 }
index d49c383dc5d5fafdf73a7b45d1f2f71a0b12ba6a..aa3a199dfc27c426a9546b28de26f1d5a4426ae9 100644 (file)
@@ -288,13 +288,13 @@ dumpAsHex(const uint8_t* data, size_t length);
 
 /// @brief Dumps a vector of bytes as a string of hexadecimal digits.
 ///
-/// @param vec vector to dump
+/// @param vec vector to dump.
 std::string
 dumpAsHex(const std::vector<uint8_t>& vec);
 
 /// @brief Dumps a string as a string of hexadecimal digits.
 ///
-/// @param str string to dump
+/// @param str string to dump.
 std::string
 dumpAsHex(const std::string& str);