diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-03 10:42:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-03 19:45:47 +0300 |
commit | 65f77105438a7793836d7ba2d9a05fa585b8caf9 (patch) | |
tree | 4d63477603816b80c2d3291ac1d0b361dcdd599c /include/linux/sctp.h | |
parent | b515fd27591dea06bc9f0178fba361b43b76ab6b (diff) | |
download | linux-65f77105438a7793836d7ba2d9a05fa585b8caf9.tar.xz |
sctp: remove the typedef sctp_cwrhdr_t
This patch is to remove the typedef sctp_cwrhdr_t, and
replace with struct sctp_cwrhdr in the places where it's
using this typedef.
It is also to 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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 026bbdfcaf44..3c8c418425e6 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -531,13 +531,13 @@ struct sctp_ecne_chunk { /* RFC 2960. Appendix A. Explicit Congestion Notification. * Congestion Window Reduced (CWR) (13) */ -typedef struct sctp_cwrhdr { +struct sctp_cwrhdr { __be32 lowest_tsn; -} sctp_cwrhdr_t; +}; typedef struct sctp_cwr_chunk { struct sctp_chunkhdr chunk_hdr; - sctp_cwrhdr_t cwr_hdr; + struct sctp_cwrhdr cwr_hdr; } sctp_cwr_chunk_t; /* PR-SCTP |