diff options
author | F. Aragon <paco@voltanet.io> | 2018-09-13 17:37:08 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-09-13 17:37:08 +0200 |
commit | 7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f (patch) | |
tree | 43c78be92e26fe2a6adcc231c18ba869e0fb1ccf /lib/vrf.h | |
parent | Merge pull request #3007 from pacovn/static_analysis__shadow_variables2 (diff) | |
download | frr-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) /* |