Resolve several compile warnings and errors. (#43)

This commit is contained in:
pvanhorn
2016-05-18 14:16:10 -07:00
committed by Jonathan Hui
parent e9f4292be3
commit 91cce9e0d7
3 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ extern "C" {
/**
* Initialize the OpenThread library.
*/
void otInit();
void otInit(void);
/**
* Run the next queued tasklet in OpenThread.
-5
View File
@@ -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());
+1 -1
View File
@@ -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)
{