Fix compiler warnings. (#681)

This commit is contained in:
Jonathan Hui
2016-09-23 15:44:53 -07:00
committed by GitHub
parent bc17bdfc94
commit 90457e535f
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -2118,7 +2118,7 @@ void Interpreter::ProcessCommissioner(int argc, char *argv[])
VerifyOrExit(static_cast<size_t>(length) <= OT_STEERING_DATA_MAX_LENGTH, error = kThreadError_NoBufs);
VerifyOrExit(Interpreter::Hex2Bin(argv[index], dataset.mSteeringData.m8, static_cast<uint16_t>(length)) >= 0,
error = kThreadError_Parse);
dataset.mSteeringData.mLength = length;
dataset.mSteeringData.mLength = static_cast<uint8_t>(length);
length = 0;
}
else if (strcmp(argv[index], "joinerudpport") == 0)
+2 -1
View File
@@ -60,7 +60,8 @@ Commissioner::Commissioner(ThreadNetif &aThreadNetif):
mSendKek(false),
mSocket(aThreadNetif.GetIp6().mUdp),
mRelayReceive(OPENTHREAD_URI_RELAY_RX, &Commissioner::HandleRelayReceive, this),
mNetif(aThreadNetif)
mNetif(aThreadNetif),
mIsSendMgmtCommRequest(false)
{
aThreadNetif.GetCoapServer().AddResource(mRelayReceive);
}
+1 -1
View File
@@ -167,7 +167,7 @@ private:
Coap::Resource mRelayReceive;
ThreadNetif &mNetif;
bool mIsSendMgmtCommRequest = false;
bool mIsSendMgmtCommRequest;
};
} // namespace MeshCoP