summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-16 21:34:16 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-06-16 22:31:35 +0200
commit6fd04fda318284c9d4749c325bcb7d87b04db650 (patch)
treea76bcb4f30d4d4eacc8ba37bfcc15ca01ff41e30 /eigrpd/eigrp_vty.c
parentpython: Remove redundant import of subprocess (diff)
downloadfrr-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.c8
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);
}