Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 12:52:06 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196510 - head/sys/net
Message-ID:  <200908241252.n7OCq6cT095324@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Mon Aug 24 12:52:05 2009
New Revision: 196510
URL: http://svn.freebsd.org/changeset/base/196510

Log:
  Make if_grow static -- it's not used outside of if.c, and with the
  internals destined to change, it's better if it remains that way.
  
  MFC after:	3 days

Modified:
  head/sys/net/if.c
  head/sys/net/if_var.h

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Mon Aug 24 11:46:40 2009	(r196509)
+++ head/sys/net/if.c	Mon Aug 24 12:52:05 2009	(r196510)
@@ -124,6 +124,7 @@ static void	if_attachdomain1(struct ifne
 static int	ifconf(u_long, caddr_t);
 static void	if_freemulti(struct ifmultiaddr *);
 static void	if_init(void *);
+static void	if_grow(void);
 static void	if_check(void *);
 static void	if_route(struct ifnet *, int flag, int fam);
 static int	if_setflag(struct ifnet *, int, int, int *, int);
@@ -297,7 +298,7 @@ VNET_SYSUNINIT(vnet_if_uninit, SI_SUB_IN
     vnet_if_uninit, NULL);
 #endif
 
-void
+static void
 if_grow(void)
 {
 	u_int n;

Modified: head/sys/net/if_var.h
==============================================================================
--- head/sys/net/if_var.h	Mon Aug 24 11:46:40 2009	(r196509)
+++ head/sys/net/if_var.h	Mon Aug 24 12:52:05 2009	(r196510)
@@ -826,7 +826,6 @@ int	if_allmulti(struct ifnet *, int);
 struct	ifnet* if_alloc(u_char);
 void	if_attach(struct ifnet *);
 void	if_dead(struct ifnet *);
-void	if_grow(void);
 int	if_delmulti(struct ifnet *, struct sockaddr *);
 void	if_delmulti_ifma(struct ifmultiaddr *);
 void	if_detach(struct ifnet *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908241252.n7OCq6cT095324>