[code-style] apply clang-format

This commit is contained in:
Jonathan Hui
2018-02-09 21:43:42 +00:00
parent f8e866c65c
commit 69d98d4a53
401 changed files with 13393 additions and 13112 deletions
+5 -6
View File
@@ -257,10 +257,10 @@ uint32_t otPlatRandomGet(void)
uint64_t tmpstate;
tmpstate = (uint64_t)33614 * (uint64_t)sRandomState;
q = tmpstate & 0xffffffff;
q = q >> 1;
p = tmpstate >> 32;
mlcg = p + q;
q = tmpstate & 0xffffffff;
q = q >> 1;
p = tmpstate >> 32;
mlcg = p + q;
if (mlcg & 0x80000000)
{
@@ -306,8 +306,7 @@ otError otPlatSettingsAbandonChange(otInstance *aInstance)
return OT_ERROR_NONE;
}
otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue,
uint16_t *aValueLength)
otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength)
{
(void)aInstance;
(void)aKey;
+3 -3
View File
@@ -45,9 +45,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
const otPanId panId = 0xdead;
otInstance *instance = NULL;
otMessage *message = NULL;
otError error = OT_ERROR_NONE;
bool isSecure;
otMessage * message = NULL;
otError error = OT_ERROR_NONE;
bool isSecure;
VerifyOrExit(size > 0);
+4 -4
View File
@@ -45,9 +45,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
const otPanId panId = 0xdead;
otInstance *instance = NULL;
otInstance * instance = NULL;
otRadioFrame frame;
uint8_t *buf = NULL;
uint8_t * buf = NULL;
VerifyOrExit(size <= OT_RADIO_FRAME_MAX_SIZE);
@@ -62,9 +62,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
buf = static_cast<uint8_t *>(malloc(size));
memset(&frame, 0, sizeof(frame));
frame.mPsdu = buf;
frame.mPsdu = buf;
frame.mChannel = 11;
frame.mLength = static_cast<uint8_t>(size);
frame.mLength = static_cast<uint8_t>(size);
memcpy(buf, data, frame.mLength);