summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/constants.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-05 14:00:01 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-07 06:33:42 +0200
commita0f098d0385a40f9c4c8a2ce48d075f77ea7edd8 (patch)
treef2d78703e8948d2b26f71ee7e232b62bc48d00a2 /include/net/sctp/constants.h
parentsctp: remove the typedef sctp_event_primitive_t (diff)
downloadlinux-a0f098d0385a40f9c4c8a2ce48d075f77ea7edd8.tar.xz
linux-a0f098d0385a40f9c4c8a2ce48d075f77ea7edd8.zip
sctp: remove the typedef sctp_event_other_t
This patch is to remove the typedef sctp_event_other_t, and replace with enum sctp_event_other 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>
Diffstat (limited to 'include/net/sctp/constants.h')
-rw-r--r--include/net/sctp/constants.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h
index 162ee954a6af..fd8a80ec573f 100644
--- a/include/net/sctp/constants.h
+++ b/include/net/sctp/constants.h
@@ -101,10 +101,10 @@ typedef enum {
#define SCTP_EVENT_TIMEOUT_MAX SCTP_EVENT_TIMEOUT_AUTOCLOSE
#define SCTP_NUM_TIMEOUT_TYPES (SCTP_EVENT_TIMEOUT_MAX + 1)
-typedef enum {
+enum sctp_event_other {
SCTP_EVENT_NO_PENDING_TSN = 0,
SCTP_EVENT_ICMP_PROTO_UNREACH,
-} sctp_event_other_t;
+};
#define SCTP_EVENT_OTHER_MAX SCTP_EVENT_ICMP_PROTO_UNREACH
#define SCTP_NUM_OTHER_TYPES (SCTP_EVENT_OTHER_MAX + 1)
@@ -132,7 +132,7 @@ enum sctp_event_primitive {
typedef union {
enum sctp_cid chunk;
sctp_event_timeout_t timeout;
- sctp_event_other_t other;
+ enum sctp_event_other other;
enum sctp_event_primitive primitive;
} sctp_subtype_t;
@@ -143,7 +143,7 @@ SCTP_ST_## _name (_type _arg) \
SCTP_SUBTYPE_CONSTRUCTOR(CHUNK, enum sctp_cid, chunk)
SCTP_SUBTYPE_CONSTRUCTOR(TIMEOUT, sctp_event_timeout_t, timeout)
-SCTP_SUBTYPE_CONSTRUCTOR(OTHER, sctp_event_other_t, other)
+SCTP_SUBTYPE_CONSTRUCTOR(OTHER, enum sctp_event_other, other)
SCTP_SUBTYPE_CONSTRUCTOR(PRIMITIVE, enum sctp_event_primitive, primitive)