From: Igor Putovny Date: Fri, 5 Jan 2024 12:37:35 +0000 (+0100) Subject: Remove const from aggregator_bucket pointers in trie nodes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d82bc0533b35a6768fc3e27307311c41e15ba9;p=thirdparty%2Fbird.git Remove const from aggregator_bucket pointers in trie nodes --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index af7440697..55dfec2ef 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -165,7 +165,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 */ -static const struct aggregator_bucket * +static struct aggregator_bucket * get_ancestor_bucket(const struct trie_node *node) { /* Defined for other than root nodes */ diff --git a/proto/aggregator/aggregator.h b/proto/aggregator/aggregator.h index 79a91ed9f..22638ac21 100644 --- a/proto/aggregator/aggregator.h +++ b/proto/aggregator/aggregator.h @@ -94,8 +94,8 @@ struct aggr_item_node { struct trie_node { struct trie_node *parent; struct trie_node *child[2]; - const struct aggregator_bucket *bucket; - const struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_BUCKETS_COUNT]; + struct aggregator_bucket *bucket; + struct aggregator_bucket *potential_buckets[MAX_POTENTIAL_BUCKETS_COUNT]; int potential_buckets_count; };