X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fhash-test.c;h=803a0302e7a98c4f373ee40328a781ef00c09bf8;hb=c5fbc7b75705d1f7a322ad73e6055284a3b94e73;hp=af4c7154d1f911705b0d5b74d2626c1c970f2134;hpb=5d26aed3953fe00d6d394f9767b4a029406eeeea;p=libucw.git diff --git a/lib/hash-test.c b/lib/hash-test.c index af4c7154..803a0302 100644 --- a/lib/hash-test.c +++ b/lib/hash-test.c @@ -5,6 +5,7 @@ #include #include +#include /* TEST 1: integers */ @@ -17,6 +18,7 @@ struct node1 { #define HASH_PREFIX(x) test1_##x #define HASH_KEY_ATOMIC key #define HASH_ATOMIC_TYPE int +#define HASH_ZERO_FILL #define HASH_GIVE_INIT_DATA static inline void test1_init_data(struct node1 *n) @@ -171,7 +173,7 @@ struct node4 { #define HASH_GIVE_HASHFN static uns test4_hash(char *host, int port) { - return hash_string_nocase(host) ^ hash_int(port); + return hash_string_nocase(host) ^ hash_u32(port); } #define HASH_GIVE_EQ