Explorar o código

xfrm: Const'ify ptr args to xfrm_policy_ok.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller %!s(int64=14) %!d(string=hai) anos
pai
achega
22cccb7e03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/xfrm/xfrm_policy.c

+ 1 - 1
net/xfrm/xfrm_policy.c

@@ -1956,7 +1956,7 @@ xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x,
  * Otherwise "-2 - errored_index" is returned.
  */
 static inline int
-xfrm_policy_ok(struct xfrm_tmpl *tmpl, struct sec_path *sp, int start,
+xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start,
 	       unsigned short family)
 {
 	int idx = start;