From 846e26d71a2c871554d5d4c4dfb32a1c8e3fe3a6 Mon Sep 17 00:00:00 2001 From: Li Cao Date: Tue, 12 Jan 2021 00:13:12 +0800 Subject: [PATCH] [neighbor-table] fix typo (macAddresss -> macAddress) (#6055) --- src/core/thread/neighbor_table.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/thread/neighbor_table.cpp b/src/core/thread/neighbor_table.cpp index 1a25a01e2..c51eb23cd 100644 --- a/src/core/thread/neighbor_table.cpp +++ b/src/core/thread/neighbor_table.cpp @@ -137,21 +137,21 @@ Neighbor *NeighborTable::FindChildOrRouter(const Neighbor::AddressMatcher &aMatc Neighbor *NeighborTable::FindNeighbor(const Ip6::Address &aIp6Address, Neighbor::StateFilter aFilter) { Neighbor * neighbor = nullptr; - Mac::Address macAddresss; + Mac::Address macAddress; if (aIp6Address.IsLinkLocal()) { - aIp6Address.GetIid().ConvertToMacAddress(macAddresss); + aIp6Address.GetIid().ConvertToMacAddress(macAddress); } if (Get().IsRoutingLocator(aIp6Address)) { - macAddresss.SetShort(aIp6Address.GetIid().GetLocator()); + macAddress.SetShort(aIp6Address.GetIid().GetLocator()); } - if (!macAddresss.IsNone()) + if (!macAddress.IsNone()) { - neighbor = FindChildOrRouter(Neighbor::AddressMatcher(macAddresss, aFilter)); + neighbor = FindChildOrRouter(Neighbor::AddressMatcher(macAddress, aFilter)); ExitNow(); }