summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-12-07 01:35:11 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2012-01-02 17:27:05 +0400
commit94e7cd90feb6af51b7e21d5289dc0edc1ba94a99 (patch)
tree5bb3b96f954826535d5c32376684844523284b49 /lib/if.c
parent4f5e717413b6627310a245d16f945660c9d60736 (diff)
Revert "lib: address -Wunused-but-set-variable"
Stephen Hemminger's commits contain all the changes and several other warning fixes. This reverts commit 6947dbebdc91b6272f8107a6e0dd211457438606.
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index 41115b0f..d14cfb93 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -426,6 +426,9 @@ if_flag_dump (unsigned long flag)
static void
if_dump (const struct interface *ifp)
{
+ struct listnode *node;
+ struct connected *c;
+
zlog_info ("Interface %s index %d metric %d mtu %d "
#ifdef HAVE_IPV6
"mtu6 %d "
@@ -436,6 +439,9 @@ if_dump (const struct interface *ifp)
ifp->mtu6,
#endif /* HAVE_IPV6 */
if_flag_dump (ifp->flags));
+
+ for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c))
+ ;
}
/* Interface printing for all interface. */