diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2020-04-08 22:44:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 22:44:53 +0200 |
commit | 2ee1e4b1ba956eb6f56631b61ddc2847668196ad (patch) | |
tree | 189ce03279b0d557236d0bd004abc27db0ed53e8 /tests | |
parent | Merge pull request #6185 from opensourcerouting/build-assorted-20200408 (diff) | |
parent | tools: Add coccinelle script to catch typecasts to same type (diff) | |
download | frr-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.c | 3 |
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)); |