提交 d51ed836 编写于 作者: F Florian Westphal 提交者: Pablo Neira Ayuso

netfilter: constify arg to is_dying/confirmed

Signed-off-by: NFlorian Westphal <fw@strlen.de>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 3f8b61b7
...@@ -270,12 +270,12 @@ static inline int nf_ct_is_template(const struct nf_conn *ct) ...@@ -270,12 +270,12 @@ static inline int nf_ct_is_template(const struct nf_conn *ct)
} }
/* It's confirmed if it is, or has been in the hash table. */ /* It's confirmed if it is, or has been in the hash table. */
static inline int nf_ct_is_confirmed(struct nf_conn *ct) static inline int nf_ct_is_confirmed(const struct nf_conn *ct)
{ {
return test_bit(IPS_CONFIRMED_BIT, &ct->status); return test_bit(IPS_CONFIRMED_BIT, &ct->status);
} }
static inline int nf_ct_is_dying(struct nf_conn *ct) static inline int nf_ct_is_dying(const struct nf_conn *ct)
{ {
return test_bit(IPS_DYING_BIT, &ct->status); return test_bit(IPS_DYING_BIT, &ct->status);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册