[core] change return type of otMessageRead() (#3707)

This commit is contained in:
Yakun Xu
2019-03-22 23:12:55 +08:00
committed by Jonathan Hui
parent 49c4b63491
commit 23ff1015d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength)
return message.Append(aBuf, aLength);
}
int otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength)
uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength)
{
const Message &message = *static_cast<const Message *>(aMessage);
return message.Read(aOffset, aLength, aBuf);