diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-28 10:07:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 10:07:02 +0300 |
commit | 851586218f5d463bbd62af40dfa264c5e3539572 (patch) | |
tree | 1d98d2364a24f33def247743e67cafb89bd9fed6 /include/net/xfrm.h | |
parent | 6f2f19ed955e62a6789495da512d510f26ad4885 (diff) | |
download | linux-851586218f5d463bbd62af40dfa264c5e3539572.tar.xz |
xfrm: Pass const arg to xfrm_alg_len and xfrm_alg_auth_len.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 86ecfc1004b4..15e310fae282 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -1558,12 +1558,12 @@ static inline int xfrm_aevent_is_on(struct net *net) } #endif -static inline int xfrm_alg_len(struct xfrm_algo *alg) +static inline int xfrm_alg_len(const struct xfrm_algo *alg) { return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); } -static inline int xfrm_alg_auth_len(struct xfrm_algo_auth *alg) +static inline int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg) { return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); } |