mirror of
https://github.com/espressif/openthread.git
synced 2026-10-25 16:53:55 +00:00
Resolve several compile warnings and errors. (#43)
This commit is contained in:
@@ -110,7 +110,7 @@ extern "C" {
|
||||
/**
|
||||
* Initialize the OpenThread library.
|
||||
*/
|
||||
void otInit();
|
||||
void otInit(void);
|
||||
|
||||
/**
|
||||
* Run the next queued tasklet in OpenThread.
|
||||
|
||||
@@ -729,11 +729,6 @@ ThreadError MeshForwarder::SendMesh(Message &aMessage, Mac::Frame &aFrame)
|
||||
aFrame.SetSrcAddr(mMacSource.mShortAddress);
|
||||
|
||||
// write payload
|
||||
if (aMessage.GetLength() > aFrame.GetMaxPayloadLength())
|
||||
{
|
||||
fprintf(stderr, "%d %d\n", aMessage.GetLength(), aFrame.GetMaxPayloadLength());
|
||||
}
|
||||
|
||||
assert(aMessage.GetLength() <= aFrame.GetMaxPayloadLength());
|
||||
aMessage.Read(0, aMessage.GetLength(), aFrame.GetPayload());
|
||||
aFrame.SetPayloadLength(aMessage.GetLength());
|
||||
|
||||
Vendored
+1
-1
@@ -41,7 +41,7 @@ static unsigned char sMemoryBuf[MBED_MEMORY_BUF_SIZE];
|
||||
static mbedtls_aes_context sAesContext;
|
||||
static mbedtls_md_context_t sSha256Context;
|
||||
|
||||
void mbedInit()
|
||||
void mbedInit(void)
|
||||
{
|
||||
if (sIsInitialized)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user