]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3492] FIxed missed comments.
authorThomas Markwalder <tmark@isc.org>
Wed, 7 Aug 2024 16:02:11 +0000 (16:02 +0000)
committerThomas Markwalder <tmark@isc.org>
Wed, 7 Aug 2024 16:02:11 +0000 (16:02 +0000)
src/lib/dhcp/libdhcp++.cc

index 867b6baefa5d5e7b3c6f71ee28ad7e53e55c5347..32ee134f37fdec3270995fbd5eabed73687476f8 100644 (file)
@@ -447,7 +447,7 @@ LibDHCP::unpackOptions6(const OptionBuffer& buf, const string& option_space,
             } catch (const std::exception& ex) {
                 isc_throw(OptionParseError, "opt_type: " << static_cast<uint16_t>(opt_type)
                                             << ", opt_len " << static_cast<uint16_t>(opt_len)
-                                            << " error: " << ex.what());
+                                            << ", error: " << ex.what());
             }
         }
 
@@ -682,9 +682,9 @@ LibDHCP::unpackOptions4(const OptionBuffer& buf, const string& option_space,
             } catch (const SkipRemainingOptionsError&) {
                 throw;
             } catch (const std::exception& ex) {
-                isc_throw(OptionParseError, "opt_type: " << (uint16_t)(opt_type)
-                                            << ", opt_len: " << (uint16_t)(opt_len)
-                                            << " error: " << ex.what());
+                isc_throw(OptionParseError, "opt_type: " << static_cast<uint16_t>(opt_type)
+                                            << ", opt_len: " << static_cast<uint16_t>(opt_len)
+                                            << ", error: " << ex.what());
             }
         }