From: David S. Miller Date: Thu, 24 Feb 2011 05:19:13 +0000 (-0500) Subject: xfrm: Const'ify address arguments to xfrm_addr_cmp() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ff6acd16825d59de3964b036183a5d214213b9a6;p=deliverable%2Flinux.git xfrm: Const'ify address arguments to xfrm_addr_cmp() Signed-off-by: David S. Miller --- diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 18f115a6fb19..1c82b944803a 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) {