Date: Fri, 15 May 2009 23:36:51 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 162138 for review Message-ID: <200905152336.n4FNapsc090563@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162138 Change 162138 by zec@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905152336.n4FNapsc090563>