Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a37ef76 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 3189a290
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;