diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-06-30 11:52:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-01 09:08:41 -0700 |
commit | 3583df1a3d7328b42cf116db3fb56b0368fab12b (patch) | |
tree | 56fbc39a98b8b7c4e608c91ab6492c3d6b03fce5 /include/linux/sctp.h | |
parent | 0664ed4378907c936fbee811efe95650d32baf34 (diff) | |
download | linux-stable-3583df1a3d7328b42cf116db3fb56b0368fab12b.tar.gz linux-stable-3583df1a3d7328b42cf116db3fb56b0368fab12b.tar.bz2 linux-stable-3583df1a3d7328b42cf116db3fb56b0368fab12b.zip |
sctp: remove the typedef sctp_datahdr_t
This patch is to remove the typedef sctp_datahdr_t, and replace with
struct sctp_datahdr in the places where it's using this typedef.
It is also to use izeof(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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index d5c0ddadb68b..55d84c143122 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -227,17 +227,17 @@ enum { SCTP_PARAM_ACTION_MASK = cpu_to_be16(0xc000), }; /* RFC 2960 Section 3.3.1 Payload Data (DATA) (0) */ -typedef struct sctp_datahdr { +struct sctp_datahdr { __be32 tsn; __be16 stream; __be16 ssn; __be32 ppid; __u8 payload[0]; -} sctp_datahdr_t; +}; typedef struct sctp_data_chunk { struct sctp_chunkhdr chunk_hdr; - sctp_datahdr_t data_hdr; + struct sctp_datahdr data_hdr; } sctp_data_chunk_t; /* DATA Chuck Specific Flags */ |