Skip to contentSkip to conversation

xfrm: Const'ify local xfrm_address_t pointers in xfrm_policy_lookup_bytype.

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 12/26 xfrm: Const'ify local xfrm_address_t pointers in xfrm_policy_lookup_bytype.

---
 net/xfrm/xfrm_policy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/xfrm/xfrm_policy.c +1 -1
index 0c503be..d097668 100644
@@ -894,7 +894,7 @@ static struct xfrm_policy *xfrm_policy_lookup_bytype(struct net *net, u8 type,
 {
 	int err;
 	struct xfrm_policy *pol, *ret;
-	xfrm_address_t *daddr, *saddr;
+	const xfrm_address_t *daddr, *saddr;
 	struct hlist_node *entry;
 	struct hlist_head *chain;
 	u32 priority = ~0U;
Signature · 1 line
1.7.4.1