summaryrefslogtreecommitdiff
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-03 10:42:19 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-03 19:45:47 +0300
commit65205cc465e9b37abbdbb3d595c46081b97e35bc (patch)
treec925351b0e0e858e00a750dfcd5752697e0ae0d2 /include/linux/sctp.h
parent8b32f2348a0441ef202562618b13d1bb494f3a47 (diff)
downloadlinux-65205cc465e9b37abbdbb3d595c46081b97e35bc.tar.xz
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>
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 5b7d6d9d3fc5..83dac9b0b4bd 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -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