summaryrefslogtreecommitdiff
path: root/zebra/zebra_ptm_redistribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_ptm_redistribute.c')
-rw-r--r--zebra/zebra_ptm_redistribute.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_ptm_redistribute.c b/zebra/zebra_ptm_redistribute.c
index cab6944a87..267820aceb 100644
--- a/zebra/zebra_ptm_redistribute.c
+++ b/zebra/zebra_ptm_redistribute.c
@@ -56,10 +56,9 @@ static int zsend_interface_bfd_update(int cmd, struct zserv *client,
void zebra_interface_bfd_update(struct interface *ifp, struct prefix *dp,
struct prefix *sp, int status, vrf_id_t vrf_id)
{
- struct listnode *node, *nnode;
struct zserv *client;
- for (ALL_LIST_ELEMENTS(zrouter.client_list, node, nnode, client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
if (!IS_BFD_ENABLED_PROTOCOL(client->proto))
continue;
@@ -86,10 +85,9 @@ static int zsend_bfd_peer_replay(int cmd, struct zserv *client)
void zebra_bfd_peer_replay_req(void)
{
- struct listnode *node, *nnode;
struct zserv *client;
- for (ALL_LIST_ELEMENTS(zrouter.client_list, node, nnode, client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
if (!IS_BFD_ENABLED_PROTOCOL(client->proto))
continue;