netfilter: nf_tables: Pass const set to nft_get_set_elem
authorPhil Sutter <phil@nwl.cc>
Thu, 9 Nov 2023 15:01:14 +0000 (16:01 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Dec 2023 11:08:37 +0000 (12:08 +0100)
commit5896e861a714b9b0acabbb17e61753cdb3b32b68
tree00a435210e606242d5b4a41ca29214d4207b3b83
parent56794e5358542b7c652f202946e53bfd2373b5e0
netfilter: nf_tables: Pass const set to nft_get_set_elem

The function is not supposed to alter the set, passing the pointer as
const is fine and merely requires to adjust signatures of two called
functions as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c