diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-17 08:44:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-18 02:54:42 +0300 |
commit | 982721f3911b2619482e05910644e5699fbeb065 (patch) | |
tree | 217a326d3e362c84b92e4687fcd38f7766fc8655 /net/ipv4/fib_rules.c | |
parent | b6bf3ca032c9cd517526178f579e7a4e395c6e45 (diff) | |
download | linux-982721f3911b2619482e05910644e5699fbeb065.tar.xz |
ipv4: Use const'ify fib_result deep in the route call chains.
The only troublesome bit here is __mkroute_output which wants
to override res->fi and res->type, compute those in local
variables instead.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r-- | net/ipv4/fib_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index 9cefe72029cf..3018efbaea77 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c @@ -47,7 +47,7 @@ struct fib4_rule { }; #ifdef CONFIG_IP_ROUTE_CLASSID -u32 fib_rules_tclass(struct fib_result *res) +u32 fib_rules_tclass(const struct fib_result *res) { return res->r ? ((struct fib4_rule *) res->r)->tclassid : 0; } |