From a1ac18c4d5b4f8f4f279efb2ae12b46258f22282 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 28 Jun 2005 17:17:12 +0000 Subject: 2005-06-28 Paul Jakma * (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 --- zebra/if_ioctl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'zebra/if_ioctl.c') 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 -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 -- cgit v1.2.1