diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 01:44:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 23:07:47 -0800 |
commit | 9a7386ec999ae226890faea2661b4c7d494bcbb8 (patch) | |
tree | 500b049c124bb07e316921332d46cf95b4a471a2 /net/xfrm | |
parent | 22cccb7e03125155624d0893b86a151155f1048e (diff) | |
download | linux-stable-9a7386ec999ae226890faea2661b4c7d494bcbb8.tar.gz linux-stable-9a7386ec999ae226890faea2661b4c7d494bcbb8.tar.bz2 linux-stable-9a7386ec999ae226890faea2661b4c7d494bcbb8.zip |
xfrm: Const'ify sec_path arg to secpath_has_nontransport.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-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 2de0bc233d44..41a91d27d3ea 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1994,7 +1994,7 @@ int __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, } EXPORT_SYMBOL(__xfrm_decode_session); -static inline int secpath_has_nontransport(struct sec_path *sp, int k, int *idxp) +static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp) { for (; k < sp->len; k++) { if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { |