projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: mark read-only arrays as const
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
sctp
/
debug.c
diff --git
a/net/sctp/debug.c
b/net/sctp/debug.c
index 7ff548a30cfb63b7a85147faed3292c574ae18ef..bf24fa697de26daf48c4464bb1d90d595cbe9407 100644
(file)
--- a/
net/sctp/debug.c
+++ b/
net/sctp/debug.c
@@
-52,7
+52,7
@@
int sctp_debug_flag = 1; /* Initially enable DEBUG */
#endif /* SCTP_DEBUG */
/* These are printable forms of Chunk ID's from section 3.1. */
#endif /* SCTP_DEBUG */
/* These are printable forms of Chunk ID's from section 3.1. */
-static const char *sctp_cid_tbl[SCTP_NUM_BASE_CHUNK_TYPES] = {
+static const char *
const
sctp_cid_tbl[SCTP_NUM_BASE_CHUNK_TYPES] = {
"DATA",
"INIT",
"INIT_ACK",
"DATA",
"INIT",
"INIT_ACK",
@@
-97,7
+97,7
@@
const char *sctp_cname(const sctp_subtype_t cid)
}
/* These are printable forms of the states. */
}
/* These are printable forms of the states. */
-const char *sctp_state_tbl[SCTP_STATE_NUM_STATES] = {
+const char *
const
sctp_state_tbl[SCTP_STATE_NUM_STATES] = {
"STATE_EMPTY",
"STATE_CLOSED",
"STATE_COOKIE_WAIT",
"STATE_EMPTY",
"STATE_CLOSED",
"STATE_COOKIE_WAIT",
@@
-110,7
+110,7
@@
const char *sctp_state_tbl[SCTP_STATE_NUM_STATES] = {
};
/* Events that could change the state of an association. */
};
/* Events that could change the state of an association. */
-const char *sctp_evttype_tbl[] = {
+const char *
const
sctp_evttype_tbl[] = {
"EVENT_T_unknown",
"EVENT_T_CHUNK",
"EVENT_T_TIMEOUT",
"EVENT_T_unknown",
"EVENT_T_CHUNK",
"EVENT_T_TIMEOUT",
@@
-119,7
+119,7
@@
const char *sctp_evttype_tbl[] = {
};
/* Return value of a state function */
};
/* Return value of a state function */
-const char *sctp_status_tbl[] = {
+const char *
const
sctp_status_tbl[] = {
"DISPOSITION_DISCARD",
"DISPOSITION_CONSUME",
"DISPOSITION_NOMEM",
"DISPOSITION_DISCARD",
"DISPOSITION_CONSUME",
"DISPOSITION_NOMEM",
@@
-132,7
+132,7
@@
const char *sctp_status_tbl[] = {
};
/* Printable forms of primitives */
};
/* Printable forms of primitives */
-static const char *sctp_primitive_tbl[SCTP_NUM_PRIMITIVE_TYPES] = {
+static const char *
const
sctp_primitive_tbl[SCTP_NUM_PRIMITIVE_TYPES] = {
"PRIMITIVE_ASSOCIATE",
"PRIMITIVE_SHUTDOWN",
"PRIMITIVE_ABORT",
"PRIMITIVE_ASSOCIATE",
"PRIMITIVE_SHUTDOWN",
"PRIMITIVE_ABORT",
@@
-149,7
+149,7
@@
const char *sctp_pname(const sctp_subtype_t id)
return "unknown_primitive";
}
return "unknown_primitive";
}
-static const char *sctp_other_tbl[] = {
+static const char *
const
sctp_other_tbl[] = {
"NO_PENDING_TSN",
"ICMP_PROTO_UNREACH",
};
"NO_PENDING_TSN",
"ICMP_PROTO_UNREACH",
};
@@
-162,7
+162,7
@@
const char *sctp_oname(const sctp_subtype_t id)
return "unknown 'other' event";
}
return "unknown 'other' event";
}
-static const char *sctp_timer_tbl[] = {
+static const char *
const
sctp_timer_tbl[] = {
"TIMEOUT_NONE",
"TIMEOUT_T1_COOKIE",
"TIMEOUT_T1_INIT",
"TIMEOUT_NONE",
"TIMEOUT_T1_COOKIE",
"TIMEOUT_T1_INIT",