mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 14:20:29 +00:00
Change otMessage type to not hide pointer. (#1416)
This commit is contained in:
+3
-3
@@ -1339,7 +1339,7 @@ exit:
|
||||
}
|
||||
|
||||
#ifndef OTDLL
|
||||
void Interpreter::s_HandleIcmpReceive(void *aContext, otMessage aMessage, const otMessageInfo *aMessageInfo,
|
||||
void Interpreter::s_HandleIcmpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo,
|
||||
const otIcmp6Header *aIcmpHeader)
|
||||
{
|
||||
static_cast<Interpreter *>(aContext)->HandleIcmpReceive(*static_cast<Message *>(aMessage),
|
||||
@@ -1439,7 +1439,7 @@ void Interpreter::HandlePingTimer()
|
||||
ThreadError error = kThreadError_None;
|
||||
uint32_t timestamp = HostSwap32(Timer::GetNow());
|
||||
|
||||
otMessage message;
|
||||
otMessage *message;
|
||||
const otMessageInfo *messageInfo = static_cast<const otMessageInfo *>(&sMessageInfo);
|
||||
|
||||
VerifyOrExit((message = otIp6NewMessage(mInstance, true)) != NULL, error = kThreadError_NoBufs);
|
||||
@@ -2851,7 +2851,7 @@ exit:
|
||||
}
|
||||
|
||||
#ifndef OTDLL
|
||||
void Interpreter::s_HandleDiagnosticGetResponse(otMessage aMessage, const otMessageInfo *aMessageInfo,
|
||||
void Interpreter::s_HandleDiagnosticGetResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo,
|
||||
void *aContext)
|
||||
{
|
||||
static_cast<Interpreter *>(aContext)->HandleDiagnosticGetResponse(*static_cast<Message *>(aMessage),
|
||||
|
||||
Reference in New Issue
Block a user