PERFORCE change 162138 for review
Marko Zec
zec at FreeBSD.org
Fri May 15 23:36:53 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162138
Change 162138 by zec at zec_tpx32 on 2009/05/15 23:36:35
Re-staticize ifnet_byindex_locked() and ifnet_setbyindex(),
because they are no longer refernced outside of net/if.c.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/net/if.c#62 edit
.. //depot/projects/vimage-commit2/src/sys/net/if_var.h#24 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/net/if.c#62 (text+ko) ====
@@ -203,7 +203,7 @@
MALLOC_DEFINE(M_IFADDR, "ifaddr", "interface address");
MALLOC_DEFINE(M_IFMADDR, "ether_multi", "link-level multicast address");
-struct ifnet *
+static struct ifnet *
ifnet_byindex_locked(u_short idx)
{
INIT_VNET_NET(curvnet);
@@ -240,7 +240,7 @@
return (ifp);
}
-void
+static void
ifnet_setbyindex(u_short idx, struct ifnet *ifp)
{
INIT_VNET_NET(curvnet);
==== //depot/projects/vimage-commit2/src/sys/net/if_var.h#24 (text+ko) ====
@@ -735,9 +735,7 @@
* to call ifnet_byindex() instead if ifnet_byindex_ref().
*/
struct ifnet *ifnet_byindex(u_short idx);
-struct ifnet *ifnet_byindex_locked(u_short idx);
struct ifnet *ifnet_byindex_ref(u_short idx);
-void ifnet_setbyindex(u_short idx, struct ifnet *ifp);
/*
* Given the index, ifaddr_byindex() returns the one and only
More information about the p4-projects
mailing list