Skip to contentSkip to conversation

netfilter: constify arg to is_dying/confirmed

PATCH New Florian Westphal 1 participant 1 message Jul 8, 2016

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: constify arg to is_dying/confirmed

---

include/net/netfilter/nf_conntrack.h +2 -2
index 2a5133e..9bea5b4 100644
@@ -266,12 +266,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. */
-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);
 }
 
-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);
 }
Signature · 1 line
2.7.3