Fix pretty check escapes. (#544)

This commit is contained in:
Jonathan Hui
2016-09-08 16:08:50 -07:00
committed by GitHub
parent a0aeca51a1
commit 9c75d709ad
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
View File
@@ -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();
}