mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 05:07:47 +00:00
[style] const-qualify pointer args where possible (#3705)
This commit is contained in:
committed by
Jonathan Hui
parent
cadfc6d299
commit
63cf08d04a
@@ -320,7 +320,7 @@ void Leader::HandleCommissioningGet(Coap::Message &aMessage, const Ip6::MessageI
|
||||
|
||||
void Leader::SendCommissioningGetResponse(const Coap::Message & aRequest,
|
||||
const Ip6::MessageInfo &aMessageInfo,
|
||||
uint8_t * aTlvs,
|
||||
const uint8_t * aTlvs,
|
||||
uint8_t aLength)
|
||||
{
|
||||
ThreadNetif & netif = GetNetif();
|
||||
|
||||
@@ -226,7 +226,7 @@ private:
|
||||
|
||||
void SendCommissioningGetResponse(const Coap::Message & aRequest,
|
||||
const Ip6::MessageInfo &aMessageInfo,
|
||||
uint8_t * aTlvs,
|
||||
const uint8_t * aTlvs,
|
||||
uint8_t aLength);
|
||||
void SendCommissioningSetResponse(const Coap::Message & aRequest,
|
||||
const Ip6::MessageInfo & aMessageInfo,
|
||||
|
||||
@@ -154,7 +154,7 @@ uint8_t *NcpFrameBuffer::GetUpdatedBufPtr(uint8_t *aBufPtr, uint16_t aOffset, Di
|
||||
}
|
||||
|
||||
// Gets the distance between two buffer pointers (adjusts for the wrap-around) given a direction (forward or backward).
|
||||
uint16_t NcpFrameBuffer::GetDistance(uint8_t *aStartPtr, uint8_t *aEndPtr, Direction aDirection) const
|
||||
uint16_t NcpFrameBuffer::GetDistance(const uint8_t *aStartPtr, const uint8_t *aEndPtr, Direction aDirection) const
|
||||
{
|
||||
size_t distance = 0;
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@ private:
|
||||
};
|
||||
|
||||
uint8_t *GetUpdatedBufPtr(uint8_t *aBufPtr, uint16_t aOffset, Direction aDirection) const;
|
||||
uint16_t GetDistance(uint8_t *aStartPtr, uint8_t *aEndPtr, Direction aDirection) const;
|
||||
uint16_t GetDistance(const uint8_t *aStartPtr, const uint8_t *aEndPtr, Direction aDirection) const;
|
||||
|
||||
uint16_t ReadUint16At(uint8_t *aBufPtr, Direction aDirection);
|
||||
void WriteUint16At(uint8_t *aBufPtr, uint16_t aValue, Direction aDirection);
|
||||
|
||||
Reference in New Issue
Block a user