diff options
author | Florian Westphal <fw@strlen.de> | 2017-07-26 05:40:52 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-31 13:10:44 -0400 |
commit | 591bb2789bc2a93f379b13d277f441f1b427102d (patch) | |
tree | f689ae2ddf68de5a1628d6923dd1d4fcf027ecce /security/smack | |
parent | 5da773a3e81e6093c4346ee8cd356fc214d7c76c (diff) |
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>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_netfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_netfilter.c b/security/smack/smack_netfilter.c index cdeb0f3243dd..e36d17835d4f 100644 --- a/security/smack/smack_netfilter.c +++ b/security/smack/smack_netfilter.c | |||
@@ -58,7 +58,7 @@ static unsigned int smack_ipv4_output(void *priv, | |||
58 | return NF_ACCEPT; | 58 | return NF_ACCEPT; |
59 | } | 59 | } |
60 | 60 | ||
61 | static struct nf_hook_ops smack_nf_ops[] = { | 61 | static const struct nf_hook_ops smack_nf_ops[] = { |
62 | { | 62 | { |
63 | .hook = smack_ipv4_output, | 63 | .hook = smack_ipv4_output, |
64 | .pf = NFPROTO_IPV4, | 64 | .pf = NFPROTO_IPV4, |