diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 06:25:41 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-24 07:07:44 (GMT) |
commit | d3e40a9f5ed53894bc0ba8cf010844f1028afe29 (patch) | |
tree | 308768a7f094f470f903add0d189a468e3081344 /net/xfrm/xfrm_policy.c | |
parent | 63eb23f5d80d7158fa575aaca240cb8497e2c06f (diff) | |
download | linux-d3e40a9f5ed53894bc0ba8cf010844f1028afe29.tar.xz |
xfrm: Const'ify policy arg to clone_policy.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 9f6c7a7..f1f90af 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1105,7 +1105,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) return 0; } -static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir) +static struct xfrm_policy *clone_policy(const struct xfrm_policy *old, int dir) { struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC); |