summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/if.c b/lib/if.c
index 18e2fb31..3a1f9b41 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -309,8 +309,6 @@ struct interface *
if_lookup_prefix (struct prefix *prefix)
{
struct listnode *node;
- struct prefix addr;
- int bestlen = 0;
struct listnode *cnode;
struct interface *ifp;
struct connected *c;
@@ -453,7 +451,7 @@ static void
if_dump (const struct interface *ifp)
{
struct listnode *node;
- struct connected *c;
+ struct connected *c __attribute__((unused));
for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c))
zlog_info ("Interface %s index %d metric %d mtu %d "