summaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-24 00:19:13 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-23 23:07:39 -0800
commitff6acd16825d59de3964b036183a5d214213b9a6 (patch)
treef77ade3bbcfeaf3470c1395f9d5a0d49c9330145 /include/net/xfrm.h
parent6418c4e07991a7b405d86bd4579c670b50fec99d (diff)
downloadop-kernel-dev-ff6acd16825d59de3964b036183a5d214213b9a6.zip
op-kernel-dev-ff6acd16825d59de3964b036183a5d214213b9a6.tar.gz
xfrm: Const'ify address arguments to xfrm_addr_cmp()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 18f115a..1c82b94 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1520,7 +1520,8 @@ struct scatterlist;
typedef int (icv_update_fn_t)(struct hash_desc *, struct scatterlist *,
unsigned int);
-static inline int xfrm_addr_cmp(xfrm_address_t *a, xfrm_address_t *b,
+static inline int xfrm_addr_cmp(const xfrm_address_t *a,
+ const xfrm_address_t *b,
int family)
{
switch (family) {
OpenPOWER on IntegriCloud