summaryrefslogtreecommitdiffstats
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-09-13 17:37:08 +0200
committerF. Aragon <paco@voltanet.io>2018-09-13 17:37:08 +0200
commit7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f (patch)
tree43c78be92e26fe2a6adcc231c18ba869e0fb1ccf /lib/vrf.h
parentMerge pull request #3007 from pacovn/static_analysis__shadow_variables2 (diff)
downloadfrr-7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f.tar.xz
frr-7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f.zip
bgpd lib ospf6d pbrd tests zebra: shadowing fixes
This fixes all remaining local variable shadowing cases Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index c962ac4c6..f0dabf5b2 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -111,8 +111,8 @@ extern vrf_id_t vrf_name_to_id(const char *);
#define VRF_GET_ID(V, NAME, USE_JSON) \
do { \
- struct vrf *vrf; \
- if (!(vrf = vrf_lookup_by_name(NAME))) { \
+ struct vrf *_vrf; \
+ if (!(_vrf = vrf_lookup_by_name(NAME))) { \
if (USE_JSON) { \
vty_out(vty, "{}\n"); \
} else { \
@@ -120,7 +120,7 @@ extern vrf_id_t vrf_name_to_id(const char *);
} \
return CMD_WARNING; \
} \
- if (vrf->vrf_id == VRF_UNKNOWN) { \
+ if (_vrf->vrf_id == VRF_UNKNOWN) { \
if (USE_JSON) { \
vty_out(vty, "{}\n"); \
} else { \
@@ -128,7 +128,7 @@ extern vrf_id_t vrf_name_to_id(const char *);
} \
return CMD_WARNING; \
} \
- (V) = vrf->vrf_id; \
+ (V) = _vrf->vrf_id; \
} while (0)
/*