summaryrefslogtreecommitdiff
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-30 15:27:46 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-30 15:27:46 +0200
commitd024f471ea5239a8cb6ce2ccd83b686a1d438aa5 (patch)
treebefe1cead84544d44aec88dbd3aee35aa5920f75 /proto/rip/rip.c
parent921344c3ba5a0e30f04511d2039dff79b6f82dd9 (diff)
parentebd807c0b8eb0b7a3dc3371cd4c87ae886c00885 (diff)
Merge commit 'ebd807c0b8eb0b7a3dc3371cd4c87ae886c00885' into haugesund
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 0a9844f3..b04238fb 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -108,14 +108,14 @@ rip_add_rte(struct rip_proto *p, struct rip_rte **rp, struct rip_rte *src)
}
static inline void
-rip_remove_rte(struct rip_proto *p, struct rip_rte **rp)
+rip_remove_rte(struct rip_proto *p UNUSED, struct rip_rte **rp)
{
struct rip_rte *rt = *rp;
rip_unlock_neighbor(rt->from);
*rp = rt->next;
- sl_free(p->rte_slab, rt);
+ sl_free(rt);
}
static inline int rip_same_rte(struct rip_rte *a, struct rip_rte *b)