~yeban/libmemcached/todo-hosts.c-2

« back to all changes in this revision

Viewing changes to libhashkit/digest.c

  • Committer: Brian Aker
  • Date: 2011-03-17 21:45:08 UTC
  • Revision ID: brian@tangent.org-20110317214508-ogufz6pusakvcch0
Merge in updates to make sure exit/return is done properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#ifdef HAVE_HSIEH_HASH
36
36
    return libhashkit_hsieh(key, key_length);
37
37
#else
38
 
    return 1;
 
38
    return EXIT_FAILURE;
39
39
#endif
40
40
  case HASHKIT_HASH_MURMUR:
41
41
#ifdef HAVE_MURMUR_HASH
42
42
    return libhashkit_murmur(key, key_length);
43
43
#else
44
 
    return 1;
 
44
    return EXIT_FAILURE;
45
45
#endif
46
46
  case HASHKIT_HASH_JENKINS:
47
47
    return libhashkit_jenkins(key, key_length);
56
56
    break;
57
57
  }
58
58
 
59
 
  return 1;
 
59
  return EXIT_FAILURE;
60
60
}