mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
netfilter: nf_tables: constify struct nft_ctx * parameter in nft_trans_alloc()
Context is not modified by nft_trans_alloc(), so constify it. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
3189a290f9
commit
1a37ef769d
@ -111,8 +111,8 @@ static void nft_ctx_init(struct nft_ctx *ctx,
|
||||
ctx->seq = nlh->nlmsg_seq;
|
||||
}
|
||||
|
||||
static struct nft_trans *nft_trans_alloc(struct nft_ctx *ctx, int msg_type,
|
||||
u32 size)
|
||||
static struct nft_trans *nft_trans_alloc(const struct nft_ctx *ctx,
|
||||
int msg_type, u32 size)
|
||||
{
|
||||
struct nft_trans *trans;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user