From a969e2957be55a6de5c5d2a0466d00943b4f4c80 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 30 Jul 2007 11:06:42 +0000 Subject: Make tcpstates[] static, and make sure TCPSTATES is defined before 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) --- sys/netinet/tcp_fsm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/tcp_fsm.h') 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", -- cgit v1.1