summaryrefslogtreecommitdiff
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-06-30 06:52:12 +0300
committerDavid S. Miller <davem@davemloft.net>2017-07-01 19:08:41 +0300
commitae146d9b76589d636d11c5e4382bbba2fe8bdb9b (patch)
tree1c816c31c77c71e85198e7d0cd703fc66bd28b20 /include/linux/sctp.h
parent13834451950f557cbbc3129426e72e763f2d63ee (diff)
downloadlinux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.xz
sctp: remove the typedef sctp_sctphdr_t
This patch is to remove the typedef sctp_sctphdr_t, and replace with struct sctphdr in the places where it's using this typedef. It is also to fix some indents and use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r--include/linux/sctp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h
index 7a4804c4a593..85540ec4b561 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -57,12 +57,12 @@
#include <uapi/linux/sctp.h>
/* Section 3.1. SCTP Common Header Format */
-typedef struct sctphdr {
+struct sctphdr {
__be16 source;
__be16 dest;
__be32 vtag;
__le32 checksum;
-} sctp_sctphdr_t;
+};
static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb)
{