diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 09:17:56 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 10:24:16 +0300 | 
| commit | 02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch) | |
| tree | d239cb951d40fb8da5e1402863719660d5b55be6 /bgpd/bgp_evpn_vty.c | |
| parent | c323b930eaeb779a973e95b1202223164a5e2b02 (diff) | |
*: Do not cast to the same type as the destination is
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
| -rw-r--r-- | bgpd/bgp_evpn_vty.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index e4c7fdb124..eb9f34ef02 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -2687,16 +2687,16 @@ static void evpn_show_route_vni_macip(struct vty *vty, struct bgp *bgp,  		 */  		if (is_evpn_prefix_ipaddr_none(evp)) {  			/* VNI MAC -> Global */ -			evpn_type2_prefix_global_copy( -				(struct prefix_evpn *)&tmp_p, evp, -				NULL /* mac */, -				evpn_type2_path_info_get_ip(pi)); +			evpn_type2_prefix_global_copy(&tmp_p, evp, +						      NULL /* mac */, +						      evpn_type2_path_info_get_ip( +							      pi));  		} else {  			/* VNI IP -> Global */ -			evpn_type2_prefix_global_copy( -				(struct prefix_evpn *)&tmp_p, evp, -				evpn_type2_path_info_get_mac(pi), -				NULL /* ip */); +			evpn_type2_prefix_global_copy(&tmp_p, evp, +						      evpn_type2_path_info_get_mac( +							      pi), +						      NULL /* ip */);  		}  		route_vty_out_detail(vty, bgp, dest, (struct prefix *)&tmp_p,  | 
