diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-06-30 11:52:12 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-01 09:08:41 -0700 |
commit | ae146d9b76589d636d11c5e4382bbba2fe8bdb9b (patch) | |
tree | 1c816c31c77c71e85198e7d0cd703fc66bd28b20 /net/netfilter/ipset | |
parent | 13834451950f557cbbc3129426e72e763f2d63ee (diff) | |
download | linux-stable-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.gz linux-stable-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.bz2 linux-stable-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.zip |
sctp: remove the typedef sctp_sctphdr_t
This patch is to remove the typedef sctp_sctphdr_t, and replace
with struct sctphdr in the places where it's using this typedef.
It is also to fix some indents and 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 'net/netfilter/ipset')
-rw-r--r-- | net/netfilter/ipset/ip_set_getport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/ipset/ip_set_getport.c b/net/netfilter/ipset/ip_set_getport.c index 42c3e3ba1b94..3f09cdb42562 100644 --- a/net/netfilter/ipset/ip_set_getport.c +++ b/net/netfilter/ipset/ip_set_getport.c @@ -38,8 +38,8 @@ get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, break; } case IPPROTO_SCTP: { - sctp_sctphdr_t _sh; - const sctp_sctphdr_t *sh; + struct sctphdr _sh; + const struct sctphdr *sh; sh = skb_header_pointer(skb, protooff, sizeof(_sh), &_sh); if (!sh) |