From owner-p4-projects@FreeBSD.ORG Fri May 15 23:36:52 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 31C021065672; Fri, 15 May 2009 23:36:52 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5C7A106566C for ; Fri, 15 May 2009 23:36:51 +0000 (UTC) (envelope-from zec@fer.hr) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D48438FC15 for ; Fri, 15 May 2009 23:36:51 +0000 (UTC) (envelope-from zec@fer.hr) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n4FNapYJ090565 for ; Fri, 15 May 2009 23:36:51 GMT (envelope-from zec@fer.hr) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n4FNapsc090563 for perforce@freebsd.org; Fri, 15 May 2009 23:36:51 GMT (envelope-from zec@fer.hr) Date: Fri, 15 May 2009 23:36:51 GMT Message-Id: <200905152336.n4FNapsc090563@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zec@fer.hr using -f From: Marko Zec To: Perforce Change Reviews Cc: Subject: PERFORCE change 162138 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 23:36:53 -0000 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