mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-06 00:13:38 -04:00
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>
This commit is contained in:
parent
1383445195
commit
ae146d9b76
7 changed files with 24 additions and 25 deletions
|
@ -57,12 +57,12 @@
|
|||
#include <uapi/linux/sctp.h>
|
||||
|
||||
/* Section 3.1. SCTP Common Header Format */
|
||||
typedef struct sctphdr {
|
||||
struct sctphdr {
|
||||
__be16 source;
|
||||
__be16 dest;
|
||||
__be32 vtag;
|
||||
__le32 checksum;
|
||||
} sctp_sctphdr_t;
|
||||
};
|
||||
|
||||
static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue