summaryrefslogtreecommitdiffstats
path: root/zebra/if_ioctl.c
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 17:17:12 +0000
committerpaul <paul>2005-06-28 17:17:12 +0000
commita1ac18c4d5b4f8f4f279efb2ae12b46258f22282 (patch)
treee37732ef4b00ae98d1be693e721b01cc2566ba39 /zebra/if_ioctl.c
parent94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (diff)
downloadquagga-a1ac18c4d5b4f8f4f279efb2ae12b46258f22282.tar.bz2
quagga-a1ac18c4d5b4f8f4f279efb2ae12b46258f22282.tar.xz
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
Diffstat (limited to 'zebra/if_ioctl.c')
-rw-r--r--zebra/if_ioctl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c
index 24c4cd74..66d8327d 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 @@ interface_list_ioctl ()
}
/* Get interface's index by ioctl. */
-int
+static int
if_get_index (struct interface *ifp)
{
#if defined(HAVE_IF_NAMETOINDEX)
@@ -176,7 +176,7 @@ if_get_index (struct interface *ifp)
}
#ifdef SIOCGIFHWADDR
-int
+static int
if_get_hwaddr (struct interface *ifp)
{
int ret;
@@ -210,8 +210,8 @@ if_get_hwaddr (struct interface *ifp)
#ifdef HAVE_GETIFADDRS
#include <ifaddrs.h>
-int
-if_getaddrs ()
+static int
+if_getaddrs (void)
{
int ret;
struct ifaddrs *ifap;
@@ -412,7 +412,7 @@ interface_info_ioctl ()
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