From dfd2b9b032cf29b75c599d5af5ccfbf02dfcefd2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 7 Jan 2019 09:03:55 -0800 Subject: [PATCH] [api] fix typos (#3431) --- include/openthread/channel_manager.h | 2 +- include/openthread/coap.h | 2 +- include/openthread/coap_secure.h | 2 +- include/openthread/crypto.h | 2 +- include/openthread/link_raw.h | 4 ++-- include/openthread/thread.h | 2 +- src/cli/cli_coap_secure.cpp | 2 +- src/core/api/coap_secure_api.cpp | 2 +- src/core/thread/mle.cpp | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/openthread/channel_manager.h b/include/openthread/channel_manager.h index 3dcf33a51..249662246 100644 --- a/include/openthread/channel_manager.h +++ b/include/openthread/channel_manager.h @@ -128,7 +128,7 @@ otError otChannelManagerSetDelay(otInstance *aInstance, uint16_t aDelay); * @retval OT_ERROR_NONE Channel selection finished successfully. * @retval OT_ERROR_NOT_FOUND Supported channel mask is empty, therefore could not select a channel. * @retval OT_ERROR_INVALID_STATE Thread is not enabled or not enough data to select a new channel. - * @retval OT_ERROR_DISABLED_FEATURE `ChannelMonintor` feature is disabled by build-time configuration options. + * @retval OT_ERROR_DISABLED_FEATURE `ChannelMonitor` feature is disabled by build-time configuration options. * */ otError otChannelManagerRequestChannelSelect(otInstance *aInstance, bool aSkipQualityCheck); diff --git a/include/openthread/coap.h b/include/openthread/coap.h index 9ab4468a4..e9b2fa9ef 100644 --- a/include/openthread/coap.h +++ b/include/openthread/coap.h @@ -329,7 +329,7 @@ typedef struct otCoapHeader * @param[in] aResult A result of the CoAP transaction. * * @retval OT_ERROR_NONE A response was received successfully. - * @retval OT_ERROR_ABORT A CoAP transaction was reseted by peer. + * @retval OT_ERROR_ABORT A CoAP transaction was reset by peer. * @retval OT_ERROR_RESPONSE_TIMEOUT No response or acknowledgment received during timeout period. * */ diff --git a/include/openthread/coap_secure.h b/include/openthread/coap_secure.h index 6c656f446..d793c9509 100644 --- a/include/openthread/coap_secure.h +++ b/include/openthread/coap_secure.h @@ -231,7 +231,7 @@ bool otCoapSecureIsConnected(otInstance *aInstance); * @retval FALSE If DTLS session is not active. * */ -bool otCoapSecureIsConncetionActive(otInstance *aInstance); +bool otCoapSecureIsConnectionActive(otInstance *aInstance); /** * This method sends a CoAP request over secure DTLS connection. diff --git a/include/openthread/crypto.h b/include/openthread/crypto.h index 5cbfc75c0..0cf22e864 100644 --- a/include/openthread/crypto.h +++ b/include/openthread/crypto.h @@ -118,7 +118,7 @@ void otCryptoAesCcm(const uint8_t *aKey, * @retval OT_ERROR_NONE ECDSA sign has been created successfully. * @retval OT_ERROR_NO_BUFS Output buffer is too small. * @retval OT_ERROR_INVALID_ARGS Private key is not valid EC Private Key. - * @rerval OT_ERROR_FAILED Error during signing. + * @retval OT_ERROR_FAILED Error during signing. */ otError otCryptoEcdsaSign(uint8_t * aOutput, uint16_t * aOutputLength, diff --git a/include/openthread/link_raw.h b/include/openthread/link_raw.h index 7a3c306e1..33ffd1350 100644 --- a/include/openthread/link_raw.h +++ b/include/openthread/link_raw.h @@ -245,10 +245,10 @@ otError otLinkRawEnergyScan(otInstance * aInstance, otLinkRawEnergyScanDone aCallback); /** - * Enable/Disable source match for AutoPend. + * Enable/Disable source match for frame pending. * * @param[in] aInstance A pointer to an OpenThread instance. - * @param[in] aEnable Enable/disable source match for automatical pending. + * @param[in] aEnable Enable/disable source match for frame pending. * * @retval OT_ERROR_NONE If successful. * @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled. diff --git a/include/openthread/thread.h b/include/openthread/thread.h index bea394d1b..c9dd15299 100644 --- a/include/openthread/thread.h +++ b/include/openthread/thread.h @@ -166,7 +166,7 @@ typedef struct otMleCounters uint16_t mRouterRole; ///< Number of times device entered OT_DEVICE_ROLE_ROUTER role. uint16_t mLeaderRole; ///< Number of times device entered OT_DEVICE_ROLE_LEADER role. uint16_t mAttachAttempts; ///< Number of attach attempts while device was detached. - uint16_t mParitionIdChanges; ///< Number of changes to partition ID. + uint16_t mPartitionIdChanges; ///< Number of changes to partition ID. uint16_t mBetterPartitionAttachAttempts; ///< Number of attempts to attach to a better partition. /** diff --git a/src/cli/cli_coap_secure.cpp b/src/cli/cli_coap_secure.cpp index 534c2e1c8..8003b03fe 100644 --- a/src/cli/cli_coap_secure.cpp +++ b/src/cli/cli_coap_secure.cpp @@ -260,7 +260,7 @@ otError CoapSecure::Process(int argc, char *argv[]) } else if (strcmp(argv[0], "stop") == 0) { - if (otCoapSecureIsConncetionActive(mInterpreter.mInstance)) + if (otCoapSecureIsConnectionActive(mInterpreter.mInstance)) { error = otCoapSecureDisconnect(mInterpreter.mInstance); mShutdownFlag = true; diff --git a/src/core/api/coap_secure_api.cpp b/src/core/api/coap_secure_api.cpp index 53e14f49d..0200c76a8 100644 --- a/src/core/api/coap_secure_api.cpp +++ b/src/core/api/coap_secure_api.cpp @@ -177,7 +177,7 @@ bool otCoapSecureIsConnected(otInstance *aInstance) return instance.GetApplicationCoapSecure().IsConnected(); } -bool otCoapSecureIsConncetionActive(otInstance *aInstance) +bool otCoapSecureIsConnectionActive(otInstance *aInstance) { Instance &instance = *static_cast(aInstance); diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 00164880d..dde99b6ad 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -976,7 +976,7 @@ void Mle::SetLeaderData(uint32_t aPartitionId, uint8_t aWeighting, uint8_t aLead { GetNetif().GetMle().HandlePartitionChange(); GetNotifier().Signal(OT_CHANGED_THREAD_PARTITION_ID); - mCounters.mParitionIdChanges++; + mCounters.mPartitionIdChanges++; } else {