mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
Fix pretty check escapes. (#544)
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ set -x
|
||||
|
||||
[ $BUILD_TARGET != pretty-check ] || {
|
||||
export PATH=/tmp/astyle/build/gcc/bin:$PATH || die
|
||||
./configure || die
|
||||
./configure --enable-cli --enable-diag --enable-commissioner --enable-joiner --with-examples=posix || die
|
||||
make pretty-check || die
|
||||
}
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ exit:
|
||||
void Commissioner::HandleUdpReceive(void *aContext, otMessage aMessage, const otMessageInfo *aMessageInfo)
|
||||
{
|
||||
static_cast<Commissioner *>(aContext)->HandleUdpReceive(*static_cast<Message *>(aMessage),
|
||||
*static_cast<const Ip6::MessageInfo *>(aMessageInfo));
|
||||
*static_cast<const Ip6::MessageInfo *>(aMessageInfo));
|
||||
}
|
||||
|
||||
void Commissioner::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
|
||||
|
||||
@@ -272,7 +272,7 @@ int Dtls::HandleMbedtlsExportKeys(void *aContext, const unsigned char *aMasterSe
|
||||
size_t aMacLength, size_t aKeyLength, size_t aIvLength)
|
||||
{
|
||||
return static_cast<Dtls *>(aContext)->HandleMbedtlsExportKeys(aMasterSecret, aKeyBlock,
|
||||
aMacLength, aKeyLength, aIvLength);
|
||||
aMacLength, aKeyLength, aIvLength);
|
||||
}
|
||||
|
||||
int Dtls::HandleMbedtlsExportKeys(const unsigned char *aMasterSecret, const unsigned char *aKeyBlock,
|
||||
|
||||
+10
-10
@@ -72,19 +72,19 @@ void Joiner::HandleDiscoverResult(otActiveScanResult *aResult)
|
||||
{
|
||||
if (aResult != NULL)
|
||||
{
|
||||
memcpy(&mJoinerRouter, &aResult->mExtAddress, sizeof(mJoinerRouter));
|
||||
memcpy(&mJoinerRouter, &aResult->mExtAddress, sizeof(mJoinerRouter));
|
||||
}
|
||||
else
|
||||
{
|
||||
// open UDP port
|
||||
Ip6::SockAddr sockaddr;
|
||||
sockaddr.mPort = 1000;
|
||||
mSocket.Open(&HandleUdpReceive, this);
|
||||
mSocket.Bind(sockaddr);
|
||||
// open UDP port
|
||||
Ip6::SockAddr sockaddr;
|
||||
sockaddr.mPort = 1000;
|
||||
mSocket.Open(&HandleUdpReceive, this);
|
||||
mSocket.Bind(sockaddr);
|
||||
|
||||
mNetif.GetIp6Filter().AddUnsecurePort(sockaddr.mPort);
|
||||
mNetif.GetIp6Filter().AddUnsecurePort(sockaddr.mPort);
|
||||
|
||||
mNetif.GetDtls().Start(true, HandleDtlsReceive, HandleDtlsSend, this);
|
||||
mNetif.GetDtls().Start(true, HandleDtlsReceive, HandleDtlsSend, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ void Joiner::HandleUdpReceive(void *aContext, otMessage aMessage, const otMessag
|
||||
{
|
||||
otLogInfoMeshCoP("Joiner::HandleUdpReceive\r\n");
|
||||
static_cast<Joiner *>(aContext)->HandleUdpReceive(*static_cast<Message *>(aMessage),
|
||||
*static_cast<const Ip6::MessageInfo *>(aMessageInfo));
|
||||
*static_cast<const Ip6::MessageInfo *>(aMessageInfo));
|
||||
}
|
||||
|
||||
void Joiner::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
|
||||
@@ -154,7 +154,7 @@ void Joiner::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessag
|
||||
}
|
||||
|
||||
void Joiner::HandleUdpTransmit(void *aContext)
|
||||
{
|
||||
{
|
||||
otLogInfoMeshCoP("Joiner::HandleUdpTransmit\r\n");
|
||||
static_cast<Joiner *>(aContext)->HandleUdpTransmit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user