WARNS=n and lint(1) silencer. Declare an array of (const) strings
as const char.
This commit is contained in:
parent
dc20def492
commit
6ebd73f0f6
@ -104,7 +104,7 @@ int tcp_acounts[TCP_NSTATES][PRU_NREQ];
|
||||
#endif
|
||||
|
||||
#ifdef TCPSTATES
|
||||
char *tcpstates[] = {
|
||||
const char *tcpstates[] = {
|
||||
"CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD",
|
||||
"ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",
|
||||
"LAST_ACK", "FIN_WAIT_2", "TIME_WAIT",
|
||||
|
Loading…
x
Reference in New Issue
Block a user