Skip to contentSkip to conversation

xfrm: Const'ify ptr args to xfrm_state_ok.

PATCH New David Miller 1 participant 1 message Feb 24, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 19/26 xfrm: Const'ify ptr args to xfrm_state_ok.

---
 net/xfrm/xfrm_policy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/xfrm/xfrm_policy.c +1 -1
index 3a4221a..f766e5f 100644
@@ -1933,7 +1933,7 @@ xfrm_secpath_reject(int idx, struct sk_buff *skb, const struct flowi *fl)
  */
 
 static inline int
-xfrm_state_ok(struct xfrm_tmpl *tmpl, struct xfrm_state *x,
+xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x,
 	      unsigned short family)
 {
 	if (xfrm_state_kern(x))
Signature · 1 line
1.7.4.1