diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-03 15:42:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-03 09:45:46 -0700 |
commit | e61e4055b165f4c645ce2a85890b313abf841f67 (patch) | |
tree | 75bb8e2605edf5e479f09379316534ab63014d56 /include | |
parent | ddb0804206e818b2823c0622ecc53bbdbd6f9307 (diff) | |
download | linux-stable-e61e4055b165f4c645ce2a85890b313abf841f67.tar.gz linux-stable-e61e4055b165f4c645ce2a85890b313abf841f67.tar.bz2 linux-stable-e61e4055b165f4c645ce2a85890b313abf841f67.zip |
sctp: remove the typedef sctp_shutdownhdr_t
This patch is to remove the typedef sctp_shutdownhdr_t, and
replace with struct sctp_shutdownhdr 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')
-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 ba007163acfd..7a586ba7dcd4 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -416,13 +416,13 @@ struct sctp_abort_chunk { /* For the graceful shutdown we must carry the tag (in common header) * and the highest consecutive acking value. */ -typedef struct sctp_shutdownhdr { +struct sctp_shutdownhdr { __be32 cum_tsn_ack; -} sctp_shutdownhdr_t; +}; struct sctp_shutdown_chunk_t { struct sctp_chunkhdr chunk_hdr; - sctp_shutdownhdr_t shutdown_hdr; + struct sctp_shutdownhdr shutdown_hdr; }; /* RFC 2960. Section 3.3.10 Operation Error (ERROR) (9) */ |