Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Make tcp_outflags & tcpstates const.



details:   https://anonhg.NetBSD.org/src/rev/53cf40787004
branches:  trunk
changeset: 516273:53cf40787004
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Oct 20 03:19:41 2001 +0000

description:
Make tcp_outflags & tcpstates const.

diffstat:

 sys/netinet/tcp_fsm.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 213575225b5c -r 53cf40787004 sys/netinet/tcp_fsm.h
--- a/sys/netinet/tcp_fsm.h     Sat Oct 20 03:18:17 2001 +0000
+++ b/sys/netinet/tcp_fsm.h     Sat Oct 20 03:19:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_fsm.h,v 1.10 1998/07/09 05:49:56 mycroft Exp $     */
+/*     $NetBSD: tcp_fsm.h,v 1.11 2001/10/20 03:19:41 matt Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -72,7 +72,7 @@
  * determined by state, with the proviso that TH_FIN is sent only
  * if all data queued for output is included in the segment.
  */
-u_char tcp_outflags[TCP_NSTATES] = {
+const u_char   tcp_outflags[TCP_NSTATES] = {
     TH_RST|TH_ACK, 0, TH_SYN, TH_SYN|TH_ACK,
     TH_ACK, TH_ACK,
     TH_FIN|TH_ACK, TH_FIN|TH_ACK, TH_FIN|TH_ACK, TH_ACK, TH_ACK,
@@ -84,7 +84,7 @@
 #endif
 
 #ifdef TCPSTATES
-char *tcpstates[] = {
+const char * const tcpstates[] = {
        "CLOSED",       "LISTEN",       "SYN_SENT",     "SYN_RCVD",
        "ESTABLISHED",  "CLOSE_WAIT",   "FIN_WAIT_1",   "CLOSING",
        "LAST_ACK",     "FIN_WAIT_2",   "TIME_WAIT",



Home | Main Index | Thread Index | Old Index