diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-22 16:50:14 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-22 16:50:14 +0100 |
commit | c3935045954a8ac040d04988ec2a145527b56e36 (patch) | |
tree | 4dd19fdc1794cf4decd3a016739e6d337a86d6d6 /bgpd/bgp_routemap.c | |
parent | Merge pull request #3827 from chiragshah6/evpn_dev1 (diff) | |
download | frr-c3935045954a8ac040d04988ec2a145527b56e36.tar.xz frr-c3935045954a8ac040d04988ec2a145527b56e36.zip |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_routemap.c')
-rw-r--r-- | bgpd/bgp_routemap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 18cb332ab..17109281b 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; |