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/ospf | |
parent | 3a53a12af4fb300ab18052ec485e2b825808f670 (diff) |
Propagated const through route feed routines
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/ospf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 54d67fd6..896bf5a3 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -110,7 +110,7 @@ static int ospf_preexport(struct channel *C, rte *new); static void ospf_reload_routes(struct channel *C); -static int ospf_rte_better(struct rte *new, struct rte *old); +static int ospf_rte_better(const rte *new, const rte *old); static u32 ospf_rte_igp_metric(const rte *rt); static void ospf_disp(timer *timer); @@ -385,7 +385,7 @@ ospf_init(struct proto_config *CF) /* If new is better return 1 */ static int -ospf_rte_better(struct rte *new, struct rte *old) +ospf_rte_better(const rte *new, const rte *old) { u32 new_metric1 = ea_get_int(new->attrs, &ea_ospf_metric1, LSINFINITY); @@ -570,7 +570,7 @@ ospf_get_status(struct proto *P, byte * buf) } static void -ospf_get_route_info(rte * rte, byte * buf) +ospf_get_route_info(const rte * rte, byte * buf) { char *type = "<bug>"; |