summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-04-23 23:54:05 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-28 11:11:46 +0200
commitde1a641de4682686a59811d8a0bb7caf60521284 (patch)
treee945ad55146440d0d42366843d9ad2b5bb7eb27e /tests
parent80833111f000ce8652af61e9cd5a4dffadc41b34 (diff)
tests: fix size confusion
The question here isn't "why does it break on PowerPC?", but rather "why doesn't it break on x86_64 or ARM?" Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/bgpd/test_mpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_mpath.c b/tests/bgpd/test_mpath.c
index 2258df9491..87c214969f 100644
--- a/tests/bgpd/test_mpath.c
+++ b/tests/bgpd/test_mpath.c
@@ -315,7 +315,7 @@ static int setup_bgp_path_info_mpath_update(testcase_t *t)
str2prefix("42.1.1.0/24", &test_rn.p);
rt_node = bgp_node_to_rnode(&test_rn);
memcpy((struct route_table *)&rt_node->table, &rt->route_table,
- sizeof(struct route_table));
+ sizeof(struct route_table *));
setup_bgp_mp_list(t);
for (i = 0; i < test_mp_list_info_count; i++)
bgp_path_info_add(&test_rn, &test_mp_list_info[i]);