2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) Extern and static'ification, with related fixups
of declarations, ensuring files include their own headers, etc.
if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in
list loop
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c
index 24c4cd7..66d8327 100644
--- a/zebra/if_ioctl.c
+++ b/zebra/if_ioctl.c
@@ -33,8 +33,8 @@
#include "zebra/interface.h"
/* Interface looking up using infamous SIOCGIFCONF. */
-int
-interface_list_ioctl ()
+static int
+interface_list_ioctl (void)
{
int ret;
int sock;
@@ -131,7 +131,7 @@
}
/* Get interface's index by ioctl. */
-int
+static int
if_get_index (struct interface *ifp)
{
#if defined(HAVE_IF_NAMETOINDEX)
@@ -176,7 +176,7 @@
}
#ifdef SIOCGIFHWADDR
-int
+static int
if_get_hwaddr (struct interface *ifp)
{
int ret;
@@ -210,8 +210,8 @@
#ifdef HAVE_GETIFADDRS
#include <ifaddrs.h>
-int
-if_getaddrs ()
+static int
+if_getaddrs (void)
{
int ret;
struct ifaddrs *ifap;
@@ -412,7 +412,7 @@
struct listnode *node, *nnode;
struct interface *ifp;
- for (ALL_LIST_ELEMENTS (iflist, ifp, node, nnode))
+ for (ALL_LIST_ELEMENTS (iflist, node, nnode, ifp))
{
if_get_index (ifp);
#ifdef SIOCGIFHWADDR