diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-09-15 21:10:24 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-15 21:10:24 -0400 | 
| commit | 6aed8082b6c19f40b1219bd4aa35ee8f270db7f4 (patch) | |
| tree | 408a9bf68d4c2f1310e2dab2e6f2fed9071ffcd6 | |
| parent | 827ddd5a1db9a6e0baaa54046f47d028124997f2 (diff) | |
tests: Fix make check builds on some bsd variants
Compilation is warning that a memcpy is only copying
the first (sizeof pointer) into memory.  This is not
what we really want.  Although it does beg the question about
why this memcpy is needed( or what it is doing ).  I'm going
to just fix the memcpy and call it a day.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | tests/bgpd/test_mpath.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_mpath.c b/tests/bgpd/test_mpath.c index 92efd4c3d6..77fd876594 100644 --- a/tests/bgpd/test_mpath.c +++ b/tests/bgpd/test_mpath.c @@ -310,7 +310,7 @@ static int setup_bgp_path_info_mpath_update(testcase_t *t)  	str2prefix("42.1.1.0/24", &test_rn.p);  	rt_node = bgp_dest_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]);  | 
