summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-07-03 18:08:35 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-07-03 18:08:35 +0200
commit7b9b0c0a0087def6a3fc11824a891be5940a257b (patch)
tree9fc200c36d38d6dfe45c5f2ac62029f821e541c4 /proto
parenta81e18da254ddd7cccff82feab61aa943a277805 (diff)
Cleanup some warnings
Diffstat (limited to 'proto')
-rw-r--r--proto/babel/babel.c3
-rw-r--r--proto/ospf/ospf.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index b4404f45..afa482bb 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -2091,9 +2091,8 @@ babel_prepare_attrs(struct linpool *pool, ea_list *next, uint metric, u64 router
static int
-babel_import_control(struct proto *P, struct rte **new, struct linpool *pool)
+babel_import_control(struct proto *P, struct rte **new, struct linpool *pool UNUSED)
{
- struct babel_proto *p = (void *) P;
struct rta *a = (*new)->attrs;
/* Reject our own unreachable routes */
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index fa122f01..150f519f 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -446,7 +446,7 @@ ospf_disp(timer * timer)
* import to the filters.
*/
static int
-ospf_import_control(struct proto *P, rte **new, struct linpool *pool)
+ospf_import_control(struct proto *P, rte **new, struct linpool *pool UNUSED)
{
struct ospf_proto *p = (struct ospf_proto *) P;
struct ospf_area *oa = ospf_main_area(p);