diff options
| author | Russ White <russ@riw.us> | 2025-03-20 12:48:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-20 12:48:47 -0400 |
| commit | 37fd4519976d3428df1d21aee1858b53ecfb045f (patch) | |
| tree | b9c0acfa3ddf0de8bc2716e307bcdc6c7c8f9811 /zebra/zebra_vrf.c | |
| parent | 361f80a64b69640dbbf472e77d6d04d2e62f409a (diff) | |
| parent | 4d6f5c7e27b231b7bb4a8a2a10d80f08c63cbd42 (diff) | |
Merge pull request #18409 from donaldsharp/typesafe_zclient
Typesafe zclient
Diffstat (limited to 'zebra/zebra_vrf.c')
| -rw-r--r-- | zebra/zebra_vrf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index d652c57388..3231b03b81 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -45,13 +45,12 @@ DEFINE_MTYPE_STATIC(ZEBRA, OTHER_TABLE, "Other Table"); /* VRF information update. */ static void zebra_vrf_add_update(struct zebra_vrf *zvrf) { - struct listnode *node, *nnode; struct zserv *client; if (IS_ZEBRA_DEBUG_EVENT) zlog_debug("MESSAGE: ZEBRA_VRF_ADD %s", zvrf_name(zvrf)); - for (ALL_LIST_ELEMENTS(zrouter.client_list, node, nnode, client)) { + frr_each (zserv_client_list, &zrouter.client_list, client) { /* Do not send unsolicited messages to synchronous clients. */ if (client->synchronous) continue; @@ -62,13 +61,12 @@ static void zebra_vrf_add_update(struct zebra_vrf *zvrf) static void zebra_vrf_delete_update(struct zebra_vrf *zvrf) { - struct listnode *node, *nnode; struct zserv *client; if (IS_ZEBRA_DEBUG_EVENT) zlog_debug("MESSAGE: ZEBRA_VRF_DELETE %s", zvrf_name(zvrf)); - for (ALL_LIST_ELEMENTS(zrouter.client_list, node, nnode, client)) { + frr_each (zserv_client_list, &zrouter.client_list, client) { /* Do not send unsolicited messages to synchronous clients. */ if (client->synchronous) continue; |
