Commit 74439f34 authored by Xin Long's avatar Xin Long Committed by David S. Miller

sctp: remove the typedef sctp_endpoint_type_t

This patch is to remove the typedef sctp_endpoint_type_t, and
replace with enum sctp_endpoint_type in the places where it's
using this typedef.
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent edf903f8
...@@ -1142,10 +1142,10 @@ int sctp_is_ep_boundall(struct sock *sk); ...@@ -1142,10 +1142,10 @@ int sctp_is_ep_boundall(struct sock *sk);
/* What type of endpoint? */ /* What type of endpoint? */
typedef enum { enum sctp_endpoint_type {
SCTP_EP_TYPE_SOCKET, SCTP_EP_TYPE_SOCKET,
SCTP_EP_TYPE_ASSOCIATION, SCTP_EP_TYPE_ASSOCIATION,
} sctp_endpoint_type_t; };
/* /*
* A common base class to bridge the implmentation view of a * A common base class to bridge the implmentation view of a
...@@ -1169,7 +1169,7 @@ struct sctp_ep_common { ...@@ -1169,7 +1169,7 @@ struct sctp_ep_common {
int hashent; int hashent;
/* Runtime type information. What kind of endpoint is this? */ /* Runtime type information. What kind of endpoint is this? */
sctp_endpoint_type_t type; enum sctp_endpoint_type type;
/* Some fields to help us manage this object. /* Some fields to help us manage this object.
* refcnt - Reference count access to this object. * refcnt - Reference count access to this object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment