From c3935045954a8ac040d04988ec2a145527b56e36 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 22 Feb 2019 10:50:14 -0500 Subject: [PATCH] bgpd: Fix compile warning -> error The struct prefix *prefix is really a const struct prefix * This was causing compile warns->errors on some compilers Signed-off-by: Donald Sharp --- bgpd/bgp_routemap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 18cb332ab7..17109281bc 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -910,10 +910,9 @@ struct route_map_rule_cmd route_match_evpn_route_type_cmd = { route_match_evpn_route_type_compile, route_match_evpn_route_type_free}; /* Route map commands for VRF route leak with source vrf matching */ -static route_map_result_t route_match_vrl_source_vrf(void *rule, - struct prefix *prefix, - route_map_object_t type, - void *object) +static route_map_result_t +route_match_vrl_source_vrf(void *rule, const struct prefix *prefix, + route_map_object_t type, void *object) { struct bgp_path_info *path; char *vrf_name; -- 2.39.5