Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netns More commons eliminated.
details: https://anonhg.NetBSD.org/src/rev/7e85ba69e7c1
branches: trunk
changeset: 526843:7e85ba69e7c1
user: matt <matt%NetBSD.org@localhost>
date: Sun May 12 20:23:49 2002 +0000
description:
More commons eliminated.
diffstat:
sys/netns/idp_var.h | 4 ++--
sys/netns/ns_input.c | 6 ++++--
sys/netns/spp_debug.h | 6 +++++-
sys/netns/spp_usrreq.c | 12 +++++++-----
sys/netns/spp_var.h | 6 +++---
5 files changed, 21 insertions(+), 13 deletions(-)
diffs (124 lines):
diff -r ce28a9ad87bc -r 7e85ba69e7c1 sys/netns/idp_var.h
--- a/sys/netns/idp_var.h Sun May 12 19:50:30 2002 +0000
+++ b/sys/netns/idp_var.h Sun May 12 20:23:49 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: idp_var.h,v 1.8 1996/05/22 13:56:18 mycroft Exp $ */
+/* $NetBSD: idp_var.h,v 1.9 2002/05/12 20:23:49 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -50,7 +50,7 @@
struct nspcb;
struct mbuf;
struct socket;
-struct idpstat idpstat;
+extern struct idpstat idpstat;
void idp_input __P((struct mbuf *, ...));
void idp_abort __P((struct nspcb *));
diff -r ce28a9ad87bc -r 7e85ba69e7c1 sys/netns/ns_input.c
--- a/sys/netns/ns_input.c Sun May 12 19:50:30 2002 +0000
+++ b/sys/netns/ns_input.c Sun May 12 20:23:49 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_input.c,v 1.17 2001/11/13 01:08:10 lukem Exp $ */
+/* $NetBSD: ns_input.c,v 1.18 2002/05/12 20:23:49 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ns_input.c,v 1.17 2001/11/13 01:08:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ns_input.c,v 1.18 2002/05/12 20:23:49 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -81,6 +81,8 @@
struct nspcb nspcb;
struct nspcb nsrawpcb;
+struct idpstat idpstat;
+
struct ifqueue nsintrq;
int nsqmaxlen = IFQ_MAXLEN;
diff -r ce28a9ad87bc -r 7e85ba69e7c1 sys/netns/spp_debug.h
--- a/sys/netns/spp_debug.h Sun May 12 19:50:30 2002 +0000
+++ b/sys/netns/spp_debug.h Sun May 12 20:23:49 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spp_debug.h,v 1.6 2001/06/19 07:37:17 jdolecek Exp $ */
+/* $NetBSD: spp_debug.h,v 1.7 2002/05/12 20:23:49 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -56,4 +56,8 @@
{ "input", "output", "user", "respond", "drop" };
#endif
+#ifdef _KERNEL
+extern int sppconsdebug;
+#endif
+
#define SPP_NDEBUG 100
diff -r ce28a9ad87bc -r 7e85ba69e7c1 sys/netns/spp_usrreq.c
--- a/sys/netns/spp_usrreq.c Sun May 12 19:50:30 2002 +0000
+++ b/sys/netns/spp_usrreq.c Sun May 12 20:23:49 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spp_usrreq.c,v 1.27 2001/11/13 01:08:11 lukem Exp $ */
+/* $NetBSD: spp_usrreq.c,v 1.28 2002/05/12 20:23:49 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spp_usrreq.c,v 1.27 2001/11/13 01:08:11 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spp_usrreq.c,v 1.28 2002/05/12 20:23:49 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -75,11 +75,13 @@
spp_iss = 1; /* WRONG !! should fish it out of TODR */
}
-struct spidp spp_savesi;
+int spp_use_delack = 0;
int traceallspps = 0;
-extern int sppconsdebug;
int spp_hardnosed;
-int spp_use_delack = 0;
+u_short spp_iss;
+struct spidp spp_savesi;
+struct spp_istat spp_istat;
+
/*ARGSUSED*/
void
diff -r ce28a9ad87bc -r 7e85ba69e7c1 sys/netns/spp_var.h
--- a/sys/netns/spp_var.h Sun May 12 19:50:30 2002 +0000
+++ b/sys/netns/spp_var.h Sun May 12 20:23:49 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spp_var.h,v 1.9 1998/09/13 15:21:33 christos Exp $ */
+/* $NetBSD: spp_var.h,v 1.10 2002/05/12 20:23:49 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -188,14 +188,14 @@
};
#ifdef _KERNEL
-struct spp_istat spp_istat;
+extern struct spp_istat spp_istat;
/* Following was struct sppstat sppstat; */
#ifndef sppstat
#define sppstat spp_istat.newstats
#endif
-u_short spp_iss;
+extern u_short spp_iss;
struct sppcb;
struct spidp;
Home |
Main Index |
Thread Index |
Old Index