xfrm: Const'ify sec_path arg to secpath_has_nontransport.
Subsystems (3)
David Miller
maintainerPATCH 21/26 xfrm: Const'ify sec_path arg to secpath_has_nontransport.
Signed-off-by David S. Miller <[email protected]>
--- net/xfrm/xfrm_policy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/xfrm/xfrm_policy.c +1 -1
@@ -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 ) {
Signature · 1 line
1.7.4.1