Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Make more functions static



details:   https://anonhg.NetBSD.org/src/rev/388c7e357148
branches:  trunk
changeset: 334678:388c7e357148
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Dec 01 07:15:42 2014 +0000

description:
Make more functions static

No functional change.

diffstat:

 sys/net/if.c |  16 ++++++++++------
 sys/net/if.h |   7 +------
 2 files changed, 11 insertions(+), 12 deletions(-)

diffs (99 lines):

diff -r 8ba304a205a3 -r 388c7e357148 sys/net/if.c
--- a/sys/net/if.c      Mon Dec 01 04:11:14 2014 +0000
+++ b/sys/net/if.c      Mon Dec 01 07:15:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.301 2014/12/01 00:27:05 christos Exp $        */
+/*     $NetBSD: if.c,v 1.302 2014/12/01 07:15:42 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.301 2014/12/01 00:27:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.302 2014/12/01 07:15:42 ozaki-r Exp $");
 
 #include "opt_inet.h"
 
@@ -194,6 +194,10 @@
     struct ifaltq *);
 static void if_slowtimo(void *);
 static void if_free_sadl(struct ifnet *);
+static void if_attachdomain1(struct ifnet *);
+static int ifconf(u_long, void *);
+static int if_clone_create(const char *);
+static int if_clone_destroy(const char *);
 
 #if defined(INET) || defined(INET6)
 static void sysctl_net_pktq_setup(struct sysctllog **, int);
@@ -655,7 +659,7 @@
        splx(s);
 }
 
-void
+static void
 if_attachdomain1(struct ifnet *ifp)
 {
        struct domain *dp;
@@ -968,7 +972,7 @@
 /*
  * Create a clone network interface.
  */
-int
+static int
 if_clone_create(const char *name)
 {
        struct if_clone *ifc;
@@ -987,7 +991,7 @@
 /*
  * Destroy a clone network interface.
  */
-int
+static int
 if_clone_destroy(const char *name)
 {
        struct if_clone *ifc;
@@ -2109,7 +2113,7 @@
  * would have been written had there been adequate space.
  */
 /*ARGSUSED*/
-int
+static int
 ifconf(u_long cmd, void *data)
 {
        struct ifconf *ifc = (struct ifconf *)data;
diff -r 8ba304a205a3 -r 388c7e357148 sys/net/if.h
--- a/sys/net/if.h      Mon Dec 01 04:11:14 2014 +0000
+++ b/sys/net/if.h      Mon Dec 01 07:15:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.181 2014/11/28 08:29:00 ozaki-r Exp $ */
+/*     $NetBSD: if.h,v 1.182 2014/12/01 07:15:42 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -866,14 +866,12 @@
 void   if_alloc_sadl(struct ifnet *);
 void   if_attach(struct ifnet *);
 void   if_attachdomain(void);
-void   if_attachdomain1(struct ifnet *);
 void   if_deactivate(struct ifnet *);
 void   if_purgeaddrs(struct ifnet *, int, void (*)(struct ifaddr *));
 void   if_detach(struct ifnet *);
 void   if_down(struct ifnet *);
 void   if_link_state_change(struct ifnet *, int);
 void   if_up(struct ifnet *);
-int    ifconf(u_long, void *);
 void   ifinit(void);
 void   ifinit1(void);
 int    ifaddrpref_ioctl(struct socket *, u_long, void *, struct ifnet *);
@@ -905,9 +903,6 @@
 void   if_clone_attach(struct if_clone *);
 void   if_clone_detach(struct if_clone *);
 
-int    if_clone_create(const char *);
-int    if_clone_destroy(const char *);
-
 int    ifq_enqueue(struct ifnet *, struct mbuf * ALTQ_COMMA
     ALTQ_DECL(struct altq_pktattr *));
 int    ifq_enqueue2(struct ifnet *, struct ifqueue *, struct mbuf * ALTQ_COMMA



Home | Main Index | Thread Index | Old Index