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:

committed by
David S. Miller

parent
8b32f2348a
commit
65205cc465
@@ -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
|
||||
|
Reference in New Issue
Block a user