summaryrefslogtreecommitdiffstats
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-03 03:42:09 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-03 12:45:46 -0400
commite61e4055b165f4c645ce2a85890b313abf841f67 (patch)
tree75bb8e2605edf5e479f09379316534ab63014d56 /include/linux/sctp.h
parentddb0804206e818b2823c0622ecc53bbdbd6f9307 (diff)
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/linux/sctp.h')
-rw-r--r--include/linux/sctp.h6
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 {
416/* For the graceful shutdown we must carry the tag (in common header) 416/* For the graceful shutdown we must carry the tag (in common header)
417 * and the highest consecutive acking value. 417 * and the highest consecutive acking value.
418 */ 418 */
419typedef struct sctp_shutdownhdr { 419struct sctp_shutdownhdr {
420 __be32 cum_tsn_ack; 420 __be32 cum_tsn_ack;
421} sctp_shutdownhdr_t; 421};
422 422
423struct sctp_shutdown_chunk_t { 423struct sctp_shutdown_chunk_t {
424 struct sctp_chunkhdr chunk_hdr; 424 struct sctp_chunkhdr chunk_hdr;
425 sctp_shutdownhdr_t shutdown_hdr; 425 struct sctp_shutdownhdr shutdown_hdr;
426}; 426};
427 427
428/* RFC 2960. Section 3.3.10 Operation Error (ERROR) (9) */ 428/* RFC 2960. Section 3.3.10 Operation Error (ERROR) (9) */