projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b597e7
)
xfrm: Const'ify policy arg and local selector in xfrm_policy_match.
author
David S. Miller
<davem@davemloft.net>
Thu, 24 Feb 2011 06:23:30 +0000
(
01:23
-0500)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index d09766893d187f41bcdf8a1123b831eef2a606fa..9f6c7a754772b34fc08ea616b03980c55af3d1ea 100644
(file)
--- 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 ||
This page took
0.026089 seconds
and
5
git commands to generate.