Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d51ed836 authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso
Browse files

netfilter: constify arg to is_dying/confirmed

parent 3f8b61b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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);
}
}