sctp: remove the typedef sctp_event_t
This patch is to remove the typedef sctp_event_t, and replace with enum sctp_event in the places where it's using this typedef. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
19cd1592a2
commit
61f0eb0722
@@ -71,14 +71,12 @@ enum { SCTP_DEFAULT_INSTREAMS = SCTP_MAX_STREAM };
|
||||
SCTP_NUM_AUTH_CHUNK_TYPES)
|
||||
|
||||
/* These are the different flavours of event. */
|
||||
typedef enum {
|
||||
|
||||
enum sctp_event {
|
||||
SCTP_EVENT_T_CHUNK = 1,
|
||||
SCTP_EVENT_T_TIMEOUT,
|
||||
SCTP_EVENT_T_OTHER,
|
||||
SCTP_EVENT_T_PRIMITIVE
|
||||
|
||||
} sctp_event_t;
|
||||
};
|
||||
|
||||
/* As a convenience for the state machine, we append SCTP_EVENT_* and
|
||||
* SCTP_ULP_* to the list of possible chunks.
|
||||
|
@@ -176,7 +176,7 @@ sctp_state_fn_t sctp_sf_autoclose_timer_expire;
|
||||
/* Prototypes for utility support functions. */
|
||||
__u8 sctp_get_chunk_type(struct sctp_chunk *chunk);
|
||||
const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *net,
|
||||
sctp_event_t event_type,
|
||||
enum sctp_event event_type,
|
||||
enum sctp_state state,
|
||||
sctp_subtype_t event_subtype);
|
||||
int sctp_chunk_iif(const struct sctp_chunk *);
|
||||
@@ -312,12 +312,10 @@ struct sctp_chunk *sctp_process_strreset_resp(
|
||||
|
||||
/* Prototypes for statetable processing. */
|
||||
|
||||
int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype,
|
||||
enum sctp_state state,
|
||||
struct sctp_endpoint *,
|
||||
struct sctp_association *asoc,
|
||||
void *event_arg,
|
||||
gfp_t gfp);
|
||||
int sctp_do_sm(struct net *net, enum sctp_event event_type,
|
||||
sctp_subtype_t subtype, enum sctp_state state,
|
||||
struct sctp_endpoint *ep, struct sctp_association *asoc,
|
||||
void *event_arg, gfp_t gfp);
|
||||
|
||||
/* 2nd level prototypes */
|
||||
void sctp_generate_t3_rtx_event(unsigned long peer);
|
||||
|
Reference in New Issue
Block a user