summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-03-20 12:48:47 -0400
committerGitHub <noreply@github.com>2025-03-20 12:48:47 -0400
commit37fd4519976d3428df1d21aee1858b53ecfb045f (patch)
treeb9c0acfa3ddf0de8bc2716e307bcdc6c7c8f9811 /zebra/zebra_srv6_vty.c
parent361f80a64b69640dbbf472e77d6d04d2e62f409a (diff)
parent4d6f5c7e27b231b7bb4a8a2a10d80f08c63cbd42 (diff)
Merge pull request #18409 from donaldsharp/typesafe_zclient
Typesafe zclient
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index 6867b1bbb6..22ba9386d9 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -484,14 +484,10 @@ DEFPY (locator_prefix,
if (memcmp(&chunk->prefix.prefix, zero, 16) == 0) {
struct zserv *client;
- struct listnode *client_node;
chunk->prefix = *prefix;
- for (ALL_LIST_ELEMENTS_RO(zrouter.client_list,
- client_node,
- client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
struct srv6_locator *tmp;
-
if (client->proto != chunk->proto)
continue;