Source-Changes-HG archive

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

[src/trunk]: src/sys/net Make ppp_softc[] extern and declare in if_ppp.c



details:   https://anonhg.NetBSD.org/src/rev/ea48aaf745fb
branches:  trunk
changeset: 526847:ea48aaf745fb
user:      matt <matt%NetBSD.org@localhost>
date:      Sun May 12 20:38:15 2002 +0000

description:
Make ppp_softc[] extern and declare in if_ppp.c

diffstat:

 sys/net/if_ppp.c    |  6 ++++--
 sys/net/if_pppvar.h |  4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 00a2f83e3337 -r ea48aaf745fb sys/net/if_ppp.c
--- a/sys/net/if_ppp.c  Sun May 12 20:36:58 2002 +0000
+++ b/sys/net/if_ppp.c  Sun May 12 20:38:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ppp.c,v 1.76 2002/03/17 19:41:10 atatat Exp $       */
+/*     $NetBSD: if_ppp.c,v 1.77 2002/05/12 20:38:15 matt Exp $ */
 /*     Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp       */
 
 /*
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.76 2002/03/17 19:41:10 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.77 2002/05/12 20:38:15 matt Exp $");
 
 #include "ppp.h"
 
@@ -186,6 +186,8 @@
 #define        M_HIGHPRI       M_LINK0 /* output packet for sc_fastq */
 #define        M_ERRMARK       M_LINK1 /* rx packet following lost/corrupted pkt */
 
+struct ppp_softc ppp_softc[NPPP];
+
 #ifdef PPP_COMPRESS
 /*
  * List of compressors we know about.
diff -r 00a2f83e3337 -r ea48aaf745fb sys/net/if_pppvar.h
--- a/sys/net/if_pppvar.h       Sun May 12 20:36:58 2002 +0000
+++ b/sys/net/if_pppvar.h       Sun May 12 20:38:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_pppvar.h,v 1.13 2001/01/15 16:33:31 thorpej Exp $   */
+/*     $NetBSD: if_pppvar.h,v 1.14 2002/05/12 20:38:16 matt Exp $      */
 /*     Id: if_pppvar.h,v 1.3 1996/07/01 01:04:37 paulus Exp     */
 
 /*
@@ -115,7 +115,7 @@
 };
 
 #ifdef _KERNEL
-struct ppp_softc ppp_softc[NPPP];
+extern struct  ppp_softc ppp_softc[];
 
 struct ppp_softc *pppalloc __P((pid_t pid));
 void   pppdealloc __P((struct ppp_softc *sc));



Home | Main Index | Thread Index | Old Index