diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 01:23:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 23:07:43 -0800 |
commit | f299d557cb7fca4219020b19dab28ed26738c3ee (patch) | |
tree | 1b57937adb5ea735a6040939305be6fb9359030b /net/xfrm | |
parent | 0b597e7edfd865cce7b18e71989a992ad0ca898e (diff) | |
download | op-kernel-dev-f299d557cb7fca4219020b19dab28ed26738c3ee.zip op-kernel-dev-f299d557cb7fca4219020b19dab28ed26738c3ee.tar.gz |
xfrm: Const'ify policy arg and local selector in xfrm_policy_match.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index d097668..9f6c7a7 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -869,10 +869,11 @@ EXPORT_SYMBOL(xfrm_policy_walk_done); * * Returns 0 if policy found, else an -errno. */ -static int xfrm_policy_match(struct xfrm_policy *pol, const struct flowi *fl, +static int xfrm_policy_match(const struct xfrm_policy *pol, + const struct flowi *fl, u8 type, u16 family, int dir) { - struct xfrm_selector *sel = &pol->selector; + const struct xfrm_selector *sel = &pol->selector; int match, ret = -ESRCH; if (pol->family != family || |