diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-28 15:12:04 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-28 15:12:04 +0000 |
commit | 58be5af9ef4162c526ab7442f3a7f282512aab73 (patch) | |
tree | a83f4357bd39a9bd5b1edea77d2e67cfb4b7c6a0 /sys/netnatm | |
parent | 6dbe30997e112fba9bddf60cecdcb864bd470de4 (diff) |
Use extern for variable declarations in .h files so that we don't end up with
multiple common warnings when linking a kernel with NATM. Put the real variable
into natm_pcb.c which seems to be a good place for the pcb list. OK kettenis@
Diffstat (limited to 'sys/netnatm')
-rw-r--r-- | sys/netnatm/natm.h | 4 | ||||
-rw-r--r-- | sys/netnatm/natm_pcb.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h index 9c72c5d6a61..e0fc8388bf6 100644 --- a/sys/netnatm/natm.h +++ b/sys/netnatm/natm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: natm.h,v 1.7 2008/05/27 19:57:45 thib Exp $ */ +/* $OpenBSD: natm.h,v 1.8 2009/01/28 15:12:03 claudio Exp $ */ /* * @@ -113,7 +113,7 @@ LIST_HEAD(npcblist, natmpcb); /* global data structures */ -struct npcblist natm_pcbs; /* global list of pcbs */ +extern struct npcblist natm_pcbs; /* global list of pcbs */ extern struct ifqueue natmintrq; /* natm packet input queue */ #define NATM_STAT #ifdef NATM_STAT diff --git a/sys/netnatm/natm_pcb.c b/sys/netnatm/natm_pcb.c index c054a78a63b..f997484ee10 100644 --- a/sys/netnatm/natm_pcb.c +++ b/sys/netnatm/natm_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: natm_pcb.c,v 1.9 2007/10/06 02:18:39 krw Exp $ */ +/* $OpenBSD: natm_pcb.c,v 1.10 2009/01/28 15:12:03 claudio Exp $ */ /* * @@ -54,6 +54,8 @@ #include <netnatm/natm.h> +struct npcblist natm_pcbs; + /* * npcb_alloc: allocate a npcb [in the free state] */ |