summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ext.c
diff options
context:
space:
mode:
authorFredi Raspall <fredi@voltanet.io>2021-05-31 22:17:16 +0200
committerEmanuele Di Pascale <emanuele@voltanet.io>2021-09-28 10:40:33 +0200
commit152656d8ef57dda11f8b84241de28bca410e891b (patch)
tree7088ecee6859b707783eac2bd81891d63b02eaa4 /ospfd/ospf_ext.c
parentospfd: fix logic on SR prefix configuration (diff)
downloadfrr-152656d8ef57dda11f8b84241de28bca410e891b.tar.xz
frr-152656d8ef57dda11f8b84241de28bca410e891b.zip
ospfd: replace iterator by RO version ..
..since it's used for read-only lookups. Signed-off-by: Fredi Raspall <fredi@voltanet.io>
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r--ospfd/ospf_ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c
index 2d08eeece..6c0d0a19d 100644
--- a/ospfd/ospf_ext.c
+++ b/ospfd/ospf_ext.c
@@ -254,10 +254,10 @@ static uint32_t get_ext_link_instance_value(void)
/* Lookup Extended Prefix/Links by ifp from OspfEXT struct iflist */
static struct ext_itf *lookup_ext_by_ifp(struct interface *ifp)
{
- struct listnode *node, *nnode;
+ struct listnode *node;
struct ext_itf *exti;
- for (ALL_LIST_ELEMENTS(OspfEXT.iflist, node, nnode, exti))
+ for (ALL_LIST_ELEMENTS_RO(OspfEXT.iflist, node, exti))
if (exti->ifp == ifp)
return exti;