/*
* 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 */
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;
};