diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-06-16 21:34:16 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-06-16 22:31:35 +0200 |
commit | 6fd04fda318284c9d4749c325bcb7d87b04db650 (patch) | |
tree | a76bcb4f30d4d4eacc8ba37bfcc15ca01ff41e30 /eigrpd/eigrp_vty.c | |
parent | python: Remove redundant import of subprocess (diff) | |
download | frr-6fd04fda318284c9d4749c325bcb7d87b04db650.tar.xz frr-6fd04fda318284c9d4749c325bcb7d87b04db650.zip |
eigrpd: vrf variable name hides a parameter of the same name
vrf is a char * being passed in. Rename the vrf to be something
else.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | eigrpd/eigrp_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c index 0809ac2cf..3d61294b2 100644 --- a/eigrpd/eigrp_vty.c +++ b/eigrpd/eigrp_vty.c @@ -240,14 +240,14 @@ DEFPY (show_ip_eigrp_interfaces, struct eigrp *eigrp; if (vrf && strncmp(vrf, "all", sizeof("all")) == 0) { - struct vrf *vrf; + struct vrf *v; - RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { - eigrp = eigrp_lookup(vrf->vrf_id); + RB_FOREACH (v, vrf_name_head, &vrfs_by_name) { + eigrp = eigrp_lookup(v->vrf_id); if (!eigrp) continue; - vty_out(vty, "VRF %s:\n", vrf->name); + vty_out(vty, "VRF %s:\n", v->name); eigrp_interface_helper(vty, eigrp, ifname, detail); } |