[core] replace uses of OT_ERROR_{} with kError{} in core modules (#7919)

This commit is contained in:
Abtin Keshavarzian
2022-07-19 21:45:55 -07:00
committed by GitHub
parent 8095a086d7
commit f98f89adfe
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1163,7 +1163,7 @@ bool RoutingManager::NetworkDataContainsOmrPrefix(const Ip6::Prefix &aPrefix) co
NetworkData::OnMeshPrefixConfig onMeshPrefixConfig;
bool contain = false;
while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == OT_ERROR_NONE)
while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, onMeshPrefixConfig) == kErrorNone)
{
if (IsValidOmrPrefix(onMeshPrefixConfig) && onMeshPrefixConfig.GetPrefix() == aPrefix)
{
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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);