0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 10:11:53 +00:00

Make pointer to aggregator bucket const

This commit is contained in:
Igor Putovny 2023-12-05 14:25:08 +01:00
parent fccb5140e2
commit 80f2d6e0c5
2 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ trie_insert_prefix(const union net_addr_union *addr, struct trie_node * const ro
/* /*
* Return first non-null bucket of the closest ancestor of @node * Return first non-null bucket of the closest ancestor of @node
*/ */
static struct aggregator_bucket * static const struct aggregator_bucket *
get_ancestor_bucket(const struct trie_node *node) get_ancestor_bucket(const struct trie_node *node)
{ {
/* Defined for other than root nodes */ /* Defined for other than root nodes */

View File

@ -94,8 +94,8 @@ struct aggr_item_node {
struct trie_node { struct trie_node {
struct trie_node *parent; struct trie_node *parent;
struct trie_node *child[2]; struct trie_node *child[2];
struct aggregator_bucket *bucket; const struct aggregator_bucket *bucket;
struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_BUCKETS_COUNT]; const struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_BUCKETS_COUNT];
int potential_buckets_count; int potential_buckets_count;
}; };