mirror of
https://github.com/espressif/openthread.git
synced 2026-10-05 15:27:40 +00:00
[clang-format] apply v14 changes (#8490)
This commit is contained in:
@@ -38,12 +38,12 @@
|
||||
|
||||
// crypto key storage stubs
|
||||
|
||||
otError otPlatCryptoImportKey(otCryptoKeyRef * aKeyRef,
|
||||
otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef,
|
||||
otCryptoKeyType aKeyType,
|
||||
otCryptoKeyAlgorithm aKeyAlgorithm,
|
||||
int aKeyUsage,
|
||||
otCryptoKeyStorage aKeyPersistence,
|
||||
const uint8_t * aKey,
|
||||
const uint8_t *aKey,
|
||||
size_t aKeyLen)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aKeyRef);
|
||||
|
||||
@@ -93,7 +93,7 @@ otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength)
|
||||
|
||||
#if __SANITIZE_ADDRESS__ == 0
|
||||
|
||||
FILE * file = NULL;
|
||||
FILE *file = NULL;
|
||||
size_t readLength;
|
||||
|
||||
otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
@@ -41,7 +41,7 @@ bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddres
|
||||
|
||||
otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex,
|
||||
const otIp6Address *aDestAddress,
|
||||
const uint8_t * aBuffer,
|
||||
const uint8_t *aBuffer,
|
||||
uint16_t aBufferLength)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInfraIfIndex);
|
||||
|
||||
@@ -207,7 +207,7 @@ otError ProcessNodeIdFilter(void *aContext, uint8_t aArgsLength, char *aArgs[])
|
||||
else if (!strcmp(aArgs[0], "deny"))
|
||||
{
|
||||
uint16_t nodeId;
|
||||
char * endptr;
|
||||
char *endptr;
|
||||
|
||||
otEXPECT_ACTION(aArgsLength == 2, error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
@@ -1276,7 +1276,7 @@ static uint8_t generateAckIeData(uint8_t *aLinkMetricsIeData, uint8_t aLinkMetri
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
otError otPlatRadioEnableCsl(otInstance * aInstance,
|
||||
otError otPlatRadioEnableCsl(otInstance *aInstance,
|
||||
uint32_t aCslPeriod,
|
||||
otShortAddress aShortAddr,
|
||||
const otExtAddress *aExtAddr)
|
||||
@@ -1307,7 +1307,7 @@ uint8_t otPlatRadioGetCslAccuracy(otInstance *aInstance)
|
||||
}
|
||||
#endif // OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
|
||||
void otPlatRadioSetMacKey(otInstance * aInstance,
|
||||
void otPlatRadioSetMacKey(otInstance *aInstance,
|
||||
uint8_t aKeyIdMode,
|
||||
uint8_t aKeyId,
|
||||
const otMacKeyMaterial *aPrevKey,
|
||||
@@ -1351,10 +1351,10 @@ exit:
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE
|
||||
otError otPlatRadioConfigureEnhAckProbing(otInstance * aInstance,
|
||||
otError otPlatRadioConfigureEnhAckProbing(otInstance *aInstance,
|
||||
otLinkMetrics aLinkMetrics,
|
||||
const otShortAddress aShortAddress,
|
||||
const otExtAddress * aExtAddress)
|
||||
const otExtAddress *aExtAddress)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
otError otPlatSpiSlaveEnable(otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback,
|
||||
otPlatSpiSlaveTransactionProcessCallback aProcessCallback,
|
||||
void * aContext)
|
||||
void *aContext)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aCompleteCallback);
|
||||
OT_UNUSED_VARIABLE(aProcessCallback);
|
||||
|
||||
@@ -94,7 +94,7 @@ static void PrintUsage(const char *aProgramName, int aExitCode)
|
||||
|
||||
void otSysInit(int aArgCount, char *aArgVector[])
|
||||
{
|
||||
char * endptr;
|
||||
char *endptr;
|
||||
uint32_t speedUpFactor = 1;
|
||||
|
||||
static const struct option long_options[] = {
|
||||
|
||||
@@ -366,8 +366,8 @@ void otPlatTrelRegisterService(otInstance *aInstance, uint16_t aPort, const uint
|
||||
#endif
|
||||
}
|
||||
|
||||
void otPlatTrelSend(otInstance * aInstance,
|
||||
const uint8_t * aUdpPayload,
|
||||
void otPlatTrelSend(otInstance *aInstance,
|
||||
const uint8_t *aUdpPayload,
|
||||
uint16_t aUdpPayloadLen,
|
||||
const otSockAddr *aDestSockAddr)
|
||||
{
|
||||
|
||||
@@ -241,8 +241,8 @@ void platformUartProcess(void)
|
||||
ssize_t rval;
|
||||
const int error_flags = POLLERR | POLLNVAL | POLLHUP;
|
||||
struct pollfd pollfd[] = {
|
||||
{s_in_fd, POLLIN | error_flags, 0},
|
||||
{s_out_fd, POLLOUT | error_flags, 0},
|
||||
{s_in_fd, POLLIN | error_flags, 0},
|
||||
{s_out_fd, POLLOUT | error_flags, 0},
|
||||
};
|
||||
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user