X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fdigest.c;h=f418dc0b644c40309e444cc58a8452b665583026;hb=6504a7aa2b460cb57d4d57dcc0aa0fa3f00c2a9c;hp=bca6b5b59a0e474e3b0bf8968f1c231b60f26090;hpb=dac48f2dbe34915755f8f4f7f88419f47dc9e27f;p=m6w6%2Flibmemcached diff --git a/libhashkit/digest.c b/libhashkit/digest.c index bca6b5b5..f418dc0b 100644 --- a/libhashkit/digest.c +++ b/libhashkit/digest.c @@ -35,10 +35,14 @@ 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 1; + return EXIT_FAILURE; #endif case HASHKIT_HASH_MURMUR: +#ifdef HAVE_MURMUR_HASH return libhashkit_murmur(key, key_length); +#else + return EXIT_FAILURE; +#endif case HASHKIT_HASH_JENKINS: return libhashkit_jenkins(key, key_length); case HASHKIT_HASH_CUSTOM: @@ -52,5 +56,5 @@ uint32_t libhashkit_digest(const char *key, size_t key_length, hashkit_hash_algo break; } - return 1; + return EXIT_FAILURE; }