summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-07-30 11:06:42 +0000
committerdes <des@FreeBSD.org>2007-07-30 11:06:42 +0000
commita969e2957be55a6de5c5d2a0466d00943b4f4c80 (patch)
treef9bf5e42e9c6d203db78a053255c80161fd541e3 /sys/netinet/tcp_usrreq.c
parent0511205d5e160e55d9266cc7536474a1fe202ebc (diff)
downloadFreeBSD-src-a969e2957be55a6de5c5d2a0466d00943b4f4c80.zip
FreeBSD-src-a969e2957be55a6de5c5d2a0466d00943b4f4c80.tar.gz
Make tcpstates[] static, and make sure TCPSTATES is defined before
<netinet/tcp_fsm.h> is included into any compilation unit that needs tcpstates[]. Also remove incorrect extern declarations and TCPDEBUG conditionals. This allows kernels both with and without TCPDEBUG to build, and unbreaks the tinderbox. Approved by: re (rwatson)
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 2ecbc30..79d678e 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -87,10 +87,6 @@
/*
* TCP protocol interface to socket abstraction.
*/
-#ifdef TCPDEBUG
-extern const char *tcpstates[];
-#endif
-
static int tcp_attach(struct socket *);
static int tcp_connect(struct tcpcb *, struct sockaddr *,
struct thread *td);
OpenPOWER on IntegriCloud