]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sctp: remove the typedef sctp_supported_addrs_param_t
authorXin Long <lucien.xin@gmail.com>
Mon, 17 Jul 2017 03:29:53 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 03:52:14 +0000 (20:52 -0700)
This patch is to remove the typedef sctp_supported_addrs_param_t, and
replace with struct sctp_supported_addrs_param in the places where it's
using this typedef.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sctp.h
net/sctp/sm_make_chunk.c

index c43e9067d41ae7bdbac598d5caa6dfd0e718f061..3ca3ab7302a64ab0cdc1e3ae946bda4af496744f 100644 (file)
@@ -297,10 +297,10 @@ struct sctp_hostname_param {
 };
 
 /* Section 3.3.2.1 Supported Address Types (12) */
-typedef struct sctp_supported_addrs_param {
+struct sctp_supported_addrs_param {
        struct sctp_paramhdr param_hdr;
        __be16 types[0];
-} sctp_supported_addrs_param_t;
+};
 
 /* Appendix A. ECN Capable (32768) */
 typedef struct sctp_ecn_capable_param {
index e5be305072b5bf36d58c38fe2f7913b6d4db1435..fb06d4fd0515595a82f18855e3cff236f3207f18 100644 (file)
@@ -223,7 +223,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
        struct sctp_chunk *retval = NULL;
        int num_types, addrs_len = 0;
        struct sctp_sock *sp;
-       sctp_supported_addrs_param_t sat;
+       struct sctp_supported_addrs_param sat;
        __be16 types[2];
        sctp_adaptation_ind_param_t aiparam;
        sctp_supported_ext_param_t ext_param;