summaryrefslogtreecommitdiff
path: root/tests/lib/cli/test_commands.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-13 14:47:12 -0400
committerGitHub <noreply@github.com>2018-09-13 14:47:12 -0400
commit00256d2dde484dea5b3b819affd46747f5faacc7 (patch)
tree43c78be92e26fe2a6adcc231c18ba869e0fb1ccf /tests/lib/cli/test_commands.c
parent6efca3442f9e74c789803cbcfba330cd12de7863 (diff)
parent7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f (diff)
Merge pull request #3019 from pacovn/static_analysis__shadow_variables4
bgpd lib ospf6d pbrd tests zebra: shadowing fixes
Diffstat (limited to 'tests/lib/cli/test_commands.c')
-rw-r--r--tests/lib/cli/test_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index 2a8d263175..a8b42ba789 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);
}