From 0d3c63c90beb7b4b6be126a6f6ee437314af7fff Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Tue, 18 Feb 2025 16:29:57 +0100 Subject: [PATCH] Add const --- proto/aggregator/aggregator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 0dea73494..56c4c7b7b 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -1044,7 +1044,7 @@ aggregator_process_update(struct aggregator_proto *p, struct aggregator_route *o assert(p != NULL); assert(new != NULL); - struct net_addr *addr = new->rte.net->n.addr; + const struct net_addr *addr = new->rte.net->n.addr; const ip_addr prefix = net_prefix(addr); const u32 pxlen = net_pxlen(addr); @@ -1083,7 +1083,7 @@ aggregator_process_withdrawal(struct aggregator_proto *p, struct aggregator_rout assert(p != NULL); assert(old != NULL); - struct net_addr *addr = old->rte.net->n.addr; + const struct net_addr *addr = old->rte.net->n.addr; const ip_addr prefix = net_prefix(addr); const u32 pxlen = net_pxlen(addr); @@ -1120,7 +1120,7 @@ construct_trie(struct aggregator_proto *p) { for (const struct rte *rte = bucket->rte; rte; rte = rte->next) { - struct net_addr *addr = rte->net->n.addr; + const struct net_addr *addr = rte->net->n.addr; const ip_addr prefix = net_prefix(addr); const u32 pxlen = net_pxlen(addr); -- 2.47.2