]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Make int-new compilable again
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 12 May 2016 19:47:29 +0000 (21:47 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 12 May 2016 19:47:29 +0000 (21:47 +0200)
lib/hash.h
nest/rt-attr.c

index b86a2eb13594e3e0dc699fac6180b58e56444bc0..04a16a7e7a2e61d122c9edec0cb0fdfe8ab6c546 100644 (file)
 
 #define HASH_WALK_FILTER_END } while (0)
 
-typedef mem_hash_t  u64;
+typedef u64 mem_hash_t;
 
 static inline void
 mem_hash_init(mem_hash_t *h)
@@ -199,7 +199,7 @@ mem_hash_mix(mem_hash_t *h, void *p, int s)
 static inline uint
 mem_hash_value(mem_hash_t *h)
 {
-  return ((value >> 32) ^ (value & 0xffffffff));
+  return ((*h >> 32) ^ (*h & 0xffffffff));
 }
 
 static inline uint
index edd9ebf5dcaa6de4280a66bf79e696a72bb6e749..5041ab9f53484fed0d44ec9039cbc1ce426d018e 100644 (file)
@@ -948,7 +948,7 @@ rta_hash(rta *a)
 {
   mem_hash_t h;
   mem_hash_init(&h);
-#define MIX(f) mem_hash_mix(&h, &(rta->f), sizeof(rta->f));
+#define MIX(f) mem_hash_mix(&h, &(a->f), sizeof(a->f));
   MIX(src);
   MIX(hostentry);
   MIX(iface);