summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_fsm.h
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_fsm.h
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_fsm.h')
-rw-r--r--sys/netinet/tcp_fsm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_fsm.h b/sys/netinet/tcp_fsm.h
index 138d967..61fd0c1 100644
--- a/sys/netinet/tcp_fsm.h
+++ b/sys/netinet/tcp_fsm.h
@@ -102,7 +102,7 @@ int tcp_acounts[TCP_NSTATES][PRU_NREQ];
#endif
#ifdef TCPSTATES
-const char *tcpstates[] = {
+static char const * const tcpstates[] = {
"CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD",
"ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",
"LAST_ACK", "FIN_WAIT_2", "TIME_WAIT",
OpenPOWER on IntegriCloud