Skip to content

Commit 4815875

Browse files
committed
[#3492] FIxed missed comments.
1 parent ac266d9 commit 4815875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/dhcp/libdhcp++.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ LibDHCP::unpackOptions6(const OptionBuffer& buf, const string& option_space,
447447
} catch (const std::exception& ex) {
448448
isc_throw(OptionParseError, "opt_type: " << static_cast<uint16_t>(opt_type)
449449
<< ", opt_len " << static_cast<uint16_t>(opt_len)
450-
<< " error: " << ex.what());
450+
<< ", error: " << ex.what());
451451
}
452452
}
453453

@@ -682,9 +682,9 @@ LibDHCP::unpackOptions4(const OptionBuffer& buf, const string& option_space,
682682
} catch (const SkipRemainingOptionsError&) {
683683
throw;
684684
} catch (const std::exception& ex) {
685-
isc_throw(OptionParseError, "opt_type: " << (uint16_t)(opt_type)
686-
<< ", opt_len: " << (uint16_t)(opt_len)
687-
<< " error: " << ex.what());
685+
isc_throw(OptionParseError, "opt_type: " << static_cast<uint16_t>(opt_type)
686+
<< ", opt_len: " << static_cast<uint16_t>(opt_len)
687+
<< ", error: " << ex.what());
688688
}
689689
}
690690

0 commit comments

Comments
 (0)