mirror of
https://github.com/espressif/openthread.git
synced 2026-10-11 18:27:43 +00:00
[code-style] apply clang-format
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user