projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in fixes for rpm/instance lookup.
[awesomized/libmemcached]
/
libhashkit
/
function.c
diff --git
a/libhashkit/function.c
b/libhashkit/function.c
index 2e68b58365c8506413cfa0010b7043ae2002c1fe..3560abd7ef273f7c0dcbeb0194a089b63bb07c05 100644
(file)
--- a/
libhashkit/function.c
+++ b/
libhashkit/function.c
@@
-6,7
+6,7
@@
* the COPYING file in the parent directory for full text.
*/
* the COPYING file in the parent directory for full text.
*/
-#include
"common.h"
+#include
<libhashkit/common.h>
static hashkit_return_t _set_function(struct hashkit_function_st *self, hashkit_hash_algorithm_t hash_algorithm)
{
static hashkit_return_t _set_function(struct hashkit_function_st *self, hashkit_hash_algorithm_t hash_algorithm)
{
@@
-51,9
+51,10
@@
static hashkit_return_t _set_function(struct hashkit_function_st *self, hashkit_
self->function= hashkit_jenkins;
break;
case HASHKIT_HASH_CUSTOM:
self->function= hashkit_jenkins;
break;
case HASHKIT_HASH_CUSTOM:
+ return HASHKIT_INVALID_ARGUMENT;
case HASHKIT_HASH_MAX:
default:
case HASHKIT_HASH_MAX:
default:
- return HASHKIT_
FAILURE
;
+ return HASHKIT_
INVALID_HASH
;
}
self->context= NULL;
}
self->context= NULL;