Skip to content

Commit

Permalink
fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Bida committed May 13, 2024
1 parent db2e178 commit 6786423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/cli_tcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ template <> otError Tcat::Process<Cmd("vendorid")>(Arg aArgs[])
{
OutputFormat("type %s, value: ", kVendorIdTypes[mVendorInfo.mDeviceIds[i].mDeviceIdType]);
OutputBytesLine((uint8_t *)mVendorInfo.mDeviceIds[i].mDeviceId,
(uint16_t)mVendorInfo.mDeviceIds[i].mDeviceIdLen);
mVendorInfo.mDeviceIds[i].mDeviceIdLen);
}
}
else
Expand Down
4 changes: 2 additions & 2 deletions src/core/meshcop/tcat_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ Error TcatAgent::HandleStartThreadInterface(void)
void SeralizeTcatAdvertisementTlv(uint8_t *aBuffer,
uint16_t &aOffset,
TcatAdvertisementTlvType aType,
uint8_t aLength,
uint16_t aLength,
const uint8_t *aValue)
{
aBuffer[aOffset++] = aType << 4 | (aLength & 0xf);
aBuffer[aOffset++] = aType << 4 | (uint8_t)(aLength & 0xf);
memcpy(aBuffer + aOffset, aValue, aLength);
aOffset += aLength;
}
Expand Down

0 comments on commit 6786423

Please sign in to comment.