netfilter: nf_hook_ops structs can be const

We no longer place these on a list so they can be const.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Florian Westphal
2017-07-26 11:40:52 +02:00
committato da Pablo Neira Ayuso
parent 5da773a3e8
commit 591bb2789b
18 ha cambiato i file con 18 aggiunte e 18 eliminazioni

Vedi File

@@ -58,7 +58,7 @@ static unsigned int smack_ipv4_output(void *priv,
return NF_ACCEPT;
}
static struct nf_hook_ops smack_nf_ops[] = {
static const struct nf_hook_ops smack_nf_ops[] = {
{
.hook = smack_ipv4_output,
.pf = NFPROTO_IPV4,