diff options
author | des <des@FreeBSD.org> | 2007-07-30 11:06:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-07-30 11:06:42 +0000 |
commit | a969e2957be55a6de5c5d2a0466d00943b4f4c80 (patch) | |
tree | f9bf5e42e9c6d203db78a053255c80161fd541e3 /sys/netinet/tcp_fsm.h | |
parent | 0511205d5e160e55d9266cc7536474a1fe202ebc (diff) | |
download | FreeBSD-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.h | 2 |
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", |