summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-10-02 10:59:34 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2014-10-02 12:52:50 +0200
commit0479b44373892db273f3e0365c7cbaad2eeb0d5f (patch)
treebdce31c6a2f693e112fe62bd1146f7338cf56d64 /nest
parent7c00551749005ad951845eb924f76e1fd28e62a2 (diff)
Fixes some warnings.
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 97a1bc27..09691bf1 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -815,7 +815,7 @@ rta_alloc_hash(void)
static inline unsigned int
rta_hash(rta *a)
{
- return (((unsigned) a->src) ^ ipa_hash(a->gw) ^
+ return (((uint) (uintptr_t) a->src) ^ ipa_hash(a->gw) ^
mpnh_hash(a->nexthops) ^ ea_hash(a->eattrs)) & 0xffff;
}