X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fhsieh.c;h=46cc241e330125249466b225e96976e817d634ad;hb=3430cb015fb0add207ff733f484dbb4a9fed3655;hp=cd44b67ff5c86993033664d2443e309cdc025779;hpb=dec0636927f5d0ae4cf06ad2710d022990419879;p=m6w6%2Flibmemcached diff --git a/libhashkit/hsieh.c b/libhashkit/hsieh.c index cd44b67f..46cc241e 100644 --- a/libhashkit/hsieh.c +++ b/libhashkit/hsieh.c @@ -1,11 +1,11 @@ /* By Paul Hsieh (C) 2004, 2005. Covered under the Paul Hsieh - * derivative license. + * derivative license. * See: http://www.azillionmonkeys.com/qed/weblicense.html for license * details. * http://www.azillionmonkeys.com/qed/hash.html */ -#include "hash_common.h" +#include "common.h" #undef get16bits #if (defined(__GNUC__) && defined(__i386__)) @@ -17,7 +17,7 @@ +(uint32_t)(((const uint8_t *)(d))[0]) ) #endif -uint32_t hashkit_hsieh(const char *key, size_t key_length) +uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context__attribute__((unused))) { uint32_t hash = 0, tmp; int rem;