tcp_{debug,timer}.h & protosw.h: Constify some strings.
authorSascha Wildner <saw@online.de>
Wed, 8 Apr 2009 20:39:02 +0000 (22:39 +0200)
committerSascha Wildner <saw@online.de>
Wed, 8 Apr 2009 20:39:02 +0000 (22:39 +0200)
sys/netinet/tcp_debug.h
sys/netinet/tcp_timer.h
sys/sys/protosw.h

index 81fc6fd..ecb846e 100644 (file)
@@ -85,7 +85,7 @@ struct        tcp_debug {
 #define        TA_DROP         4
 
 #ifdef TANAMES
-static char    *tanames[] =
+static const char *tanames[] =
     { "input", "output", "user", "respond", "drop" };
 #endif
 
index bb2e78f..f3cfc96 100644 (file)
 #define        TCPTV_DELACK    (hz / PR_FASTHZ / 2)    /* 100ms timeout */
 
 #ifdef TCPTIMERS
-static char *tcptimers[] =
+static const char *tcptimers[] =
     { "REXMT", "PERSIST", "KEEP", "2MSL" };
 #endif
 
index 4d971f1..e9d0609 100644 (file)
@@ -174,7 +174,7 @@ struct protosw {
 #define PRU_NREQ               26
 
 #ifdef PRUREQUESTS
-char *prurequests[] = {
+const char *prurequests[] = {
        "ATTACH",       "DETACH",       "BIND",         "LISTEN",
        "CONNECT",      "ACCEPT",       "DISCONNECT",   "SHUTDOWN",
        "RCVD",         "SEND",         "ABORT",        "CONTROL",
@@ -370,7 +370,7 @@ struct lwkt_port *sync_soport(struct socket *, struct sockaddr *,
        ((cmd) >= PRC_REDIRECT_NET && (cmd) <= PRC_REDIRECT_TOSHOST)
 
 #ifdef PRCREQUESTS
-char   *prcrequests[] = {
+const char *prcrequests[] = {
        "IFDOWN", "ROUTEDEAD", "IFUP", "DEC-BIT-QUENCH2",
        "QUENCH", "MSGSIZE", "HOSTDEAD", "#7",
        "NET-UNREACH", "HOST-UNREACH", "PROTO-UNREACH", "PORT-UNREACH",
@@ -399,7 +399,7 @@ char        *prcrequests[] = {
 #define        PRCO_NCMDS      2
 
 #ifdef PRCOREQUESTS
-char   *prcorequests[] = {
+const char *prcorequests[] = {
        "GETOPT", "SETOPT",
 };
 #endif