sctp: remove the typedef sctp_addiphdr_t

This patch is to remove the typedef sctp_addiphdr_t, and
replace with struct sctp_addiphdr 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:
Xin Long
2017-08-03 15:42:19 +08:00
committed by David S. Miller
parent 8b32f2348a
commit 65205cc465
3 changed files with 15 additions and 15 deletions

View File

@@ -634,14 +634,14 @@ struct sctp_addip_param {
__be32 crr_id;
};
typedef struct sctp_addiphdr {
struct sctp_addiphdr {
__be32 serial;
__u8 params[0];
} sctp_addiphdr_t;
};
typedef struct sctp_addip_chunk {
struct sctp_chunkhdr chunk_hdr;
sctp_addiphdr_t addip_hdr;
struct sctp_addiphdr addip_hdr;
} sctp_addip_chunk_t;
/* AUTH