diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-06-07 18:30:59 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-27 12:25:34 +0200 |
commit | f450e1cda41f1b7576094a0b3017ba9849cd55ae (patch) | |
tree | ba628852f4bfe466420fcd30f615c14714510521 /zebra/zebra_rib.c | |
parent | Merge pull request #16657 from Jafaral/ospfv3_test_fix (diff) | |
download | frr-f450e1cda41f1b7576094a0b3017ba9849cd55ae.tar.xz frr-f450e1cda41f1b7576094a0b3017ba9849cd55ae.zip |
zebra: Make p and src_p const for rib_delete
The prefix'es p and src_p are not const. Let's make
them so. Useful to signal that we will not change this
data.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 59190e9dd..c1bd61e1d 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4393,8 +4393,8 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p, } void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type, - unsigned short instance, uint32_t flags, struct prefix *p, - struct prefix_ipv6 *src_p, const struct nexthop *nh, + unsigned short instance, uint32_t flags, const struct prefix *p, + const struct prefix_ipv6 *src_p, const struct nexthop *nh, uint32_t nhe_id, uint32_t table_id, uint32_t metric, uint8_t distance, bool fromkernel) { |