From f98f89adfe7a06ad9aa95446e2f6891bd8a874da Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 19 Jul 2022 21:45:55 -0700 Subject: [PATCH] [core] replace uses of `OT_ERROR_{}` with `kError{}` in core modules (#7919) --- src/core/border_router/routing_manager.cpp | 2 +- src/core/border_router/routing_manager.hpp | 4 ++-- src/core/thread/mle.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/border_router/routing_manager.cpp b/src/core/border_router/routing_manager.cpp index e4ddd4532..ae0653aaf 100644 --- a/src/core/border_router/routing_manager.cpp +++ b/src/core/border_router/routing_manager.cpp @@ -1163,7 +1163,7 @@ bool RoutingManager::NetworkDataContainsOmrPrefix(const Ip6::Prefix &aPrefix) co NetworkData::OnMeshPrefixConfig onMeshPrefixConfig; bool contain = false; - while (Get().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == OT_ERROR_NONE) + while (Get().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == kErrorNone) { if (IsValidOmrPrefix(onMeshPrefixConfig) && onMeshPrefixConfig.GetPrefix() == aPrefix) { diff --git a/src/core/border_router/routing_manager.hpp b/src/core/border_router/routing_manager.hpp index 0e39536a9..1e72f53f3 100644 --- a/src/core/border_router/routing_manager.hpp +++ b/src/core/border_router/routing_manager.hpp @@ -243,8 +243,8 @@ public: * @param[in,out] aIterator An iterator. * @param[out] aEntry A reference to the entry to populate. * - * @retval OT_ERROR_NONE Got the next entry, @p aEntry is updated and @p aIterator is advanced. - * @retval OT_ERROR_NOT_FOUND No more entries in the table. + * @retval kErrorNone Got the next entry, @p aEntry is updated and @p aIterator is advanced. + * @retval kErrorNotFound No more entries in the table. * */ Error GetNextPrefixTableEntry(PrefixTableIterator &aIterator, PrefixTableEntry &aEntry) const diff --git a/src/core/thread/mle.hpp b/src/core/thread/mle.hpp index 063761309..5d07436ef 100644 --- a/src/core/thread/mle.hpp +++ b/src/core/thread/mle.hpp @@ -194,8 +194,8 @@ public: * @param[in] aCallback A pointer to a function that is called upon finishing detaching. * @param[in] aContext A pointer to callback application-specific context. * - * @retval OT_ERROR_NONE Successfully started detaching. - * @retval OT_ERROR_BUSY Detaching is already in progress. + * @retval kErrorNone Successfully started detaching. + * @retval kErrorBusy Detaching is already in progress. * */ Error DetachGracefully(otDetachGracefullyCallback aCallback, void *aContext);