mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 02:19:52 +00:00
Remove globals from message.cpp.
This commit is contained in:
@@ -117,7 +117,7 @@ void TestLowpanIphc(void)
|
||||
frame.GetSrcAddr(macSource);
|
||||
frame.GetDstAddr(macDest);
|
||||
|
||||
VerifyOrQuit((message = sIp6.NewMessage(0)) != NULL,
|
||||
VerifyOrQuit((message = sIp6.mMessagePool.New(Message::kTypeIp6, 0)) != NULL,
|
||||
"6lo: Ip6::NewMessage failed");
|
||||
|
||||
// ===> Test Lowpan::Decompress
|
||||
@@ -154,7 +154,7 @@ void TestLowpanIphc(void)
|
||||
VerifyOrQuit(memcmp(frame.GetPayload(), result, static_cast<size_t>(compressBytes)) == 0,
|
||||
"6lo: Lowpan::Compress failed");
|
||||
|
||||
SuccessOrQuit(Message::Free(*message), "6lo: Message:Free failed");
|
||||
SuccessOrQuit(message->Free(), "6lo: Message:Free failed");
|
||||
printf("PASS\n\n");
|
||||
|
||||
}
|
||||
@@ -165,8 +165,6 @@ void TestLowpanIphc(void)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
Message::Init();
|
||||
|
||||
TestLowpanIphc();
|
||||
|
||||
printf("All tests passed\n");
|
||||
|
||||
Reference in New Issue
Block a user