summaryrefslogtreecommitdiffstats
path: root/tests/lib
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 /tests/lib
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 'tests/lib')
-rw-r--r--tests/lib/cli/test_commands.c6
-rw-r--r--tests/lib/test_srcdest_table.c1
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index 2a8d26317..a8b42ba78 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -265,10 +265,10 @@ static void test_run(struct prng *prng, struct vty *vty, const char *cmd,
if (descriptions != NULL) {
for (j = 0; j < vector_active(descriptions);
j++) {
- struct cmd_token *cmd =
+ struct cmd_token *ct =
vector_slot(descriptions, j);
- printf(" '%s' '%s'\n", cmd->text,
- cmd->desc);
+ printf(" '%s' '%s'\n", ct->text,
+ ct->desc);
}
vector_free(descriptions);
}
diff --git a/tests/lib/test_srcdest_table.c b/tests/lib/test_srcdest_table.c
index e717da15b..70db69aad 100644
--- a/tests/lib/test_srcdest_table.c
+++ b/tests/lib/test_srcdest_table.c
@@ -289,7 +289,6 @@ static void test_state_verify(struct test_state *test)
expected_lock++;
if (rn->lock != expected_lock) {
- const struct prefix_ipv6 *dst_p, *src_p;
srcdest_rnode_prefixes(
rn, (const struct prefix **)&dst_p,
(const struct prefix **)&src_p);