summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2020-04-08 22:44:53 +0200
committerGitHub <noreply@github.com>2020-04-08 22:44:53 +0200
commit2ee1e4b1ba956eb6f56631b61ddc2847668196ad (patch)
tree189ce03279b0d557236d0bd004abc27db0ed53e8 /tests
parentMerge pull request #6185 from opensourcerouting/build-assorted-20200408 (diff)
parenttools: Add coccinelle script to catch typecasts to same type (diff)
downloadfrr-2ee1e4b1ba956eb6f56631b61ddc2847668196ad.tar.xz
frr-2ee1e4b1ba956eb6f56631b61ddc2847668196ad.zip
Merge pull request #6175 from ton31337/fix/avoid_same_type_typecasting
*: Do not cast to the same type
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/test_srcdest_table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib/test_srcdest_table.c b/tests/lib/test_srcdest_table.c
index 935ee500a..9d395bee8 100644
--- a/tests/lib/test_srcdest_table.c
+++ b/tests/lib/test_srcdest_table.c
@@ -391,8 +391,7 @@ static void test_state_del_one_route(struct test_state *test, struct prng *prng)
}
assert(rn);
- srcdest_rnode_prefixes(rn, (const struct prefix **)&dst_p,
- (const struct prefix **)&src_p);
+ srcdest_rnode_prefixes(rn, &dst_p, &src_p);
memcpy(&dst6_p, dst_p, sizeof(dst6_p));
if (src_p)
memcpy(&src6_p, src_p, sizeof(src6_p));