Jelajahi Sumber

xfrm: Const'ify address arguments to __xfrm_dst_lookup()

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 14 tahun lalu
induk
melakukan
6418c4e079
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      net/xfrm/xfrm_policy.c

+ 2 - 2
net/xfrm/xfrm_policy.c

@@ -92,8 +92,8 @@ int xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl,
 }
 }
 
 
 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos,
 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos,
-						  xfrm_address_t *saddr,
-						  xfrm_address_t *daddr,
+						  const xfrm_address_t *saddr,
+						  const xfrm_address_t *daddr,
 						  int family)
 						  int family)
 {
 {
 	struct xfrm_policy_afinfo *afinfo;
 	struct xfrm_policy_afinfo *afinfo;