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>
This commit is contained in:

committed by
David S. Miller

parent
ddb0804206
commit
e61e4055b1
@@ -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) */
|
||||
|
Reference in New Issue
Block a user