X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fdigest.c;h=e1559819db8faff2d3f6d4e6e7b2f3e079ea449b;hb=1c26bb24f73e277073ca3dc266c78a19fc954e21;hp=f418dc0b644c40309e444cc58a8452b665583026;hpb=9bcd450682e20f0d704d86948bbb0880e414dfb4;p=m6w6%2Flibmemcached diff --git a/libhashkit/digest.c b/libhashkit/digest.c index f418dc0b..e1559819 100644 --- a/libhashkit/digest.c +++ b/libhashkit/digest.c @@ -6,7 +6,7 @@ * the COPYING file in the parent directory for full text. */ -#include "common.h" +#include uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length) { @@ -35,13 +35,13 @@ uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algo #ifdef HAVE_HSIEH_HASH return libhashkit_hsieh(key, key_length); #else - return EXIT_FAILURE; + return 1; #endif case HASHKIT_HASH_MURMUR: #ifdef HAVE_MURMUR_HASH return libhashkit_murmur(key, key_length); #else - return EXIT_FAILURE; + return 1; #endif case HASHKIT_HASH_JENKINS: return libhashkit_jenkins(key, key_length); @@ -56,5 +56,5 @@ uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algo break; } - return EXIT_FAILURE; + return 1; }