aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_statetable.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sm_statetable.c')
-rw-r--r--net/sctp/sm_statetable.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/net/sctp/sm_statetable.c b/net/sctp/sm_statetable.c
index 3e958c1c4b95..f46c11bffea7 100644
--- a/net/sctp/sm_statetable.c
+++ b/net/sctp/sm_statetable.c
@@ -52,9 +52,10 @@ other_event_table[SCTP_NUM_OTHER_TYPES][SCTP_STATE_NUM_STATES];
52static const sctp_sm_table_entry_t 52static const sctp_sm_table_entry_t
53timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][SCTP_STATE_NUM_STATES]; 53timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][SCTP_STATE_NUM_STATES];
54 54
55static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, 55static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(
56 enum sctp_cid cid, 56 struct net *net,
57 sctp_state_t state); 57 enum sctp_cid cid,
58 enum sctp_state state);
58 59
59 60
60static const sctp_sm_table_entry_t bug = { 61static const sctp_sm_table_entry_t bug = {
@@ -78,7 +79,7 @@ static const sctp_sm_table_entry_t bug = {
78 79
79const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net, 80const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net,
80 sctp_event_t event_type, 81 sctp_event_t event_type,
81 sctp_state_t state, 82 enum sctp_state state,
82 sctp_subtype_t event_subtype) 83 sctp_subtype_t event_subtype)
83{ 84{
84 switch (event_type) { 85 switch (event_type) {
@@ -967,9 +968,10 @@ static const sctp_sm_table_entry_t timeout_event_table[SCTP_NUM_TIMEOUT_TYPES][S
967 TYPE_SCTP_EVENT_TIMEOUT_AUTOCLOSE, 968 TYPE_SCTP_EVENT_TIMEOUT_AUTOCLOSE,
968}; 969};
969 970
970static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(struct net *net, 971static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(
971 enum sctp_cid cid, 972 struct net *net,
972 sctp_state_t state) 973 enum sctp_cid cid,
974 enum sctp_state state)
973{ 975{
974 if (state > SCTP_STATE_MAX) 976 if (state > SCTP_STATE_MAX)
975 return &bug; 977 return &bug;