]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
xfrm: Const'ify local xfrm_address_t pointers in xfrm_policy_lookup_bytype.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 06:22:48 +0000 (01:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 07:07:43 +0000 (23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c

index 0c503be3260c27db7cf3cc1710f8f5877aead934..d09766893d187f41bcdf8a1123b831eef2a606fa 100644 (file)
@@ -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;