xfrm: Mark flowi arg to xfrm_state_find() const.
authorDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 02:24:19 +0000 (18:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 02:24:19 +0000 (18:24 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_state.c

index b965ad795b60ebcb5c0134c9b599ea65575d0dc9..bb824a5d71bfcd4ffdc623211ff8c186a36b2665 100644 (file)
@@ -1328,8 +1328,10 @@ extern int xfrm_state_walk(struct net *net, struct xfrm_state_walk *walk,
                           int (*func)(struct xfrm_state *, int, void*), void *);
 extern void xfrm_state_walk_done(struct xfrm_state_walk *walk);
 extern struct xfrm_state *xfrm_state_alloc(struct net *net);
-extern struct xfrm_state *xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr, 
-                                         struct flowi *fl, struct xfrm_tmpl *tmpl,
+extern struct xfrm_state *xfrm_state_find(xfrm_address_t *daddr,
+                                         xfrm_address_t *saddr, 
+                                         const struct flowi *fl,
+                                         struct xfrm_tmpl *tmpl,
                                          struct xfrm_policy *pol, int *err,
                                          unsigned short family);
 extern struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark,
index 674f2780cedde397f2efd1c2f5c315e1e49aea10..30a0f178819cb7c391c3afc91f08fd7b4a68e9b5 100644 (file)
@@ -785,7 +785,7 @@ static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x,
 
 struct xfrm_state *
 xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr,
-               struct flowi *fl, struct xfrm_tmpl *tmpl,
+               const struct flowi *fl, struct xfrm_tmpl *tmpl,
                struct xfrm_policy *pol, int *err,
                unsigned short family)
 {
This page took 0.027485 seconds and 5 git commands to generate.