diff options
author | bde <bde@FreeBSD.org> | 1996-04-13 12:45:57 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-04-13 12:45:57 +0000 |
commit | 6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387 (patch) | |
tree | 82c451c31a31c4d821ca6348595300d7b8decbb8 /sys/netinet | |
parent | e97a7a15c60a5616debcd9cc097e3510d9eca133 (diff) | |
download | FreeBSD-src-6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387.zip FreeBSD-src-6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387.tar.gz |
Eliminated sloppy common-style declarations. Now there are no duplicated
common labels for LINT. There are still some common declarations for the
!KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in
tcp_debug.h.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_debug.c | 6 | ||||
-rw-r--r-- | sys/netinet/tcp_debug.h | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/netinet/tcp_debug.c b/sys/netinet/tcp_debug.c index b749368..a54beb2 100644 --- a/sys/netinet/tcp_debug.c +++ b/sys/netinet/tcp_debug.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_debug.c 8.1 (Berkeley) 6/10/93 - * $Id: tcp_debug.c,v 1.5 1995/11/14 20:34:24 phk Exp $ + * $Id: tcp_debug.c,v 1.6 1996/03/11 15:13:26 davidg Exp $ */ #ifdef TCPDEBUG @@ -70,6 +70,10 @@ #ifdef TCPDEBUG static int tcpconsdebug = 0; #endif + +static struct tcp_debug tcp_debug[TCP_NDEBUG]; +static int tcp_debx; + /* * Tcp debug routines */ diff --git a/sys/netinet/tcp_debug.h b/sys/netinet/tcp_debug.h index 02af11e..cab4451 100644 --- a/sys/netinet/tcp_debug.h +++ b/sys/netinet/tcp_debug.h @@ -31,11 +31,11 @@ * SUCH DAMAGE. * * @(#)tcp_debug.h 8.1 (Berkeley) 6/10/93 - * $Id: tcp_debug.h,v 1.3 1994/08/21 05:27:35 paul Exp $ + * $Id: tcp_debug.h,v 1.4 1995/11/14 20:34:29 phk Exp $ */ #ifndef _NETINET_TCP_DEBUG_H_ -#define _NETINET_TCP_DEBUG_H_ +#define _NETINET_TCP_DEBUG_H_ struct tcp_debug { n_time td_time; @@ -59,7 +59,11 @@ static char *tanames[] = #endif #define TCP_NDEBUG 100 + +#ifndef KERNEL +/* XXX common variables for broken applications. */ struct tcp_debug tcp_debug[TCP_NDEBUG]; int tcp_debx; - #endif + +#endif /* !_NETINET_TCP_DEBUG_H_ */ |