make the strings for tcptimers, tanames and prurequests const to silence
warnings.
This commit is contained in:
parent
f341f36a88
commit
e88894d39a
@ -68,7 +68,7 @@ struct tcp_debug {
|
|||||||
#define TA_DROP 4
|
#define TA_DROP 4
|
||||||
|
|
||||||
#ifdef TANAMES
|
#ifdef TANAMES
|
||||||
static char *tanames[] =
|
static const char *tanames[] =
|
||||||
{ "input", "output", "user", "respond", "drop" };
|
{ "input", "output", "user", "respond", "drop" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
#define TCPTV_DELACK (hz / PR_FASTHZ / 2) /* 100ms timeout */
|
#define TCPTV_DELACK (hz / PR_FASTHZ / 2) /* 100ms timeout */
|
||||||
|
|
||||||
#ifdef TCPTIMERS
|
#ifdef TCPTIMERS
|
||||||
static char *tcptimers[] =
|
static const char *tcptimers[] =
|
||||||
{ "REXMT", "PERSIST", "KEEP", "2MSL" };
|
{ "REXMT", "PERSIST", "KEEP", "2MSL" };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ struct protosw {
|
|||||||
#define PRU_NREQ 22
|
#define PRU_NREQ 22
|
||||||
|
|
||||||
#ifdef PRUREQUESTS
|
#ifdef PRUREQUESTS
|
||||||
char *prurequests[] = {
|
const char *prurequests[] = {
|
||||||
"ATTACH", "DETACH", "BIND", "LISTEN",
|
"ATTACH", "DETACH", "BIND", "LISTEN",
|
||||||
"CONNECT", "ACCEPT", "DISCONNECT", "SHUTDOWN",
|
"CONNECT", "ACCEPT", "DISCONNECT", "SHUTDOWN",
|
||||||
"RCVD", "SEND", "ABORT", "CONTROL",
|
"RCVD", "SEND", "ABORT", "CONTROL",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user