diff options
author | Maria Matejka <mq@ucw.cz> | 2023-03-30 11:37:16 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-04 17:00:58 +0200 |
commit | 98f69aa4190d31f749ac4999cab9700850da15a9 (patch) | |
tree | 12fe6cc21538293df98e118ae54ee84567fdaf45 /proto/babel | |
parent | 3a53a12af4fb300ab18052ec485e2b825808f670 (diff) |
Propagated const through route feed routines
Diffstat (limited to 'proto/babel')
-rw-r--r-- | proto/babel/babel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c index 86306180..4f3603e4 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -2068,7 +2068,7 @@ babel_dump(struct proto *P) } static void -babel_get_route_info(rte *rte, byte *buf) +babel_get_route_info(const rte *rte, byte *buf) { u64 rid = 0; eattr *e = ea_find(rte->attrs, &ea_babel_router_id); @@ -2388,7 +2388,7 @@ babel_rt_notify(struct proto *P, struct channel *c UNUSED, const net_addr *net, } static int -babel_rte_better(struct rte *new, struct rte *old) +babel_rte_better(const rte *new, const rte *old) { uint new_metric = ea_get_int(new->attrs, &ea_babel_metric, BABEL_INFINITY); uint old_metric = ea_get_int(old->attrs, &ea_babel_metric, BABEL_INFINITY); |