From 016f0cda2250bd2cfeb5062b10dab00c9627f2b8 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sun, 14 Apr 2024 20:52:51 +0100 Subject: [PATCH] Fix some cpplint issues (cherry picked from commit 3d752e7daf5e3e4a270687ffbd1a153e167c480f) --- libs/acn/LLRPProbeReplyPDU.cpp | 3 ++- libs/acn/LLRPProbeReplyPDUTest.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/acn/LLRPProbeReplyPDU.cpp b/libs/acn/LLRPProbeReplyPDU.cpp index a7822e7dc9..f92ad721b3 100644 --- a/libs/acn/LLRPProbeReplyPDU.cpp +++ b/libs/acn/LLRPProbeReplyPDU.cpp @@ -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(m_type)); *length = sizeof(llrp_probe_reply_pdu_data); diff --git a/libs/acn/LLRPProbeReplyPDUTest.cpp b/libs/acn/LLRPProbeReplyPDUTest.cpp index ae25918683..1ce2ca86f4 100644 --- a/libs/acn/LLRPProbeReplyPDUTest.cpp +++ b/libs/acn/LLRPProbeReplyPDUTest.cpp @@ -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;