diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2020-03-22 11:27:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 11:27:03 -0700 |
| commit | 8b78c3664929c95fa61e5dc8fc70d3981a48a09e (patch) | |
| tree | 8d3db1ba0985e25fda09b4d8ee237b3cae490c3c /lib/agg_table.h | |
| parent | d03e644c2b4bd4eb4d7be878de5247906e61f420 (diff) | |
| parent | 99a088e7b81988609a8b77392ff549bf5d4a17ad (diff) | |
Merge pull request #6067 from donaldsharp/bgp_const
Bgp const
Diffstat (limited to 'lib/agg_table.h')
| -rw-r--r-- | lib/agg_table.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h index 40ffe8c755..f95fed6758 100644 --- a/lib/agg_table.h +++ b/lib/agg_table.h @@ -86,13 +86,13 @@ static inline struct agg_node *agg_route_next(struct agg_node *node) } static inline struct agg_node *agg_node_get(struct agg_table *table, - struct prefix *p) + const struct prefix *p) { return agg_node_from_rnode(route_node_get(table->route_table, p)); } static inline struct agg_node * -agg_node_lookup(const struct agg_table *const table, struct prefix *p) +agg_node_lookup(const struct agg_table *const table, const struct prefix *p) { return agg_node_from_rnode(route_node_lookup(table->route_table, p)); } @@ -109,7 +109,7 @@ static inline struct agg_node *agg_route_next_until(struct agg_node *node, } static inline struct agg_node *agg_node_match(struct agg_table *table, - struct prefix *p) + const struct prefix *p) { return agg_node_from_rnode(route_node_match(table->route_table, p)); } |
