projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db454b
)
xfrm: Const'ify ptr args to xfrm_policy_ok.
author
David S. Miller
<davem@davemloft.net>
Thu, 24 Feb 2011 06:43:33 +0000
(
01:43
-0500)
committer
David S. Miller
<davem@davemloft.net>
Thu, 24 Feb 2011 07:07:46 +0000
(23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index f766e5fb718f8d5e7d05be5ed79ece893c5730eb..2de0bc233d44beac86c60ed073ecda868c8342da 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-1956,7
+1956,7
@@
xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x,
* Otherwise "-2 - errored_index" is returned.
*/
static inline int
-xfrm_policy_ok(
struct xfrm_tmpl *tmpl,
struct sec_path *sp, int start,
+xfrm_policy_ok(
const struct xfrm_tmpl *tmpl, const
struct sec_path *sp, int start,
unsigned short family)
{
int idx = start;