Skip to content

Commit

Permalink
Fix some cpplint issues
Browse files Browse the repository at this point in the history
(cherry picked from commit 3d752e7)
  • Loading branch information
peternewman committed Apr 14, 2024
1 parent d89abd2 commit 016f0cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/acn/LLRPProbeReplyPDU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ using ola::rdm::UID;
bool LLRPProbeReplyPDU::PackData(uint8_t *data, unsigned int *length) const {
llrp_probe_reply_pdu_data pdu_data;
m_target_uid.Pack(pdu_data.target_uid, sizeof(pdu_data.target_uid));
m_hardware_address.Pack(pdu_data.hardware_address, sizeof(pdu_data.hardware_address));
m_hardware_address.Pack(pdu_data.hardware_address,
sizeof(pdu_data.hardware_address));
pdu_data.type = HostToNetwork(static_cast<uint8_t>(m_type));

*length = sizeof(llrp_probe_reply_pdu_data);
Expand Down
3 changes: 2 additions & 1 deletion libs/acn/LLRPProbeReplyPDUTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ void LLRPProbeReplyPDUTest::testSimpleLLRPProbeReplyPDU() {
OLA_ASSERT_DATA_EQUALS(&data[4], UID::LENGTH, buffer, sizeof(buffer));
uint8_t buffer2[MACAddress::LENGTH];
hardware_address.Pack(buffer2, sizeof(buffer2));
OLA_ASSERT_DATA_EQUALS(&data[10], MACAddress::LENGTH, buffer2, sizeof(buffer2));
OLA_ASSERT_DATA_EQUALS(&data[10], MACAddress::LENGTH,
buffer2, sizeof(buffer2));

// test undersized buffer
bytes_used = size - 1;
Expand Down

0 comments on commit 016f0cd

Please sign in to comment.