Skip to content

Commit 1a37ef7

Browse files
committed
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>
1 parent 3189a29 commit 1a37ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static void nft_ctx_init(struct nft_ctx *ctx,
111111
ctx->seq = nlh->nlmsg_seq;
112112
}
113113

114-
static struct nft_trans *nft_trans_alloc(struct nft_ctx *ctx, int msg_type,
115-
u32 size)
114+
static struct nft_trans *nft_trans_alloc(const struct nft_ctx *ctx,
115+
int msg_type, u32 size)
116116
{
117117
struct nft_trans *trans;
118118

0 commit comments

Comments
 (0)