projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch
[m6w6/libmemcached]
/
libhashkit
/
hsieh.cc
diff --git
a/libhashkit/hsieh.cc
b/libhashkit/hsieh.cc
index 35a2e2096c23d5c2f300a9ca877b095cc45aaabd..f70679098630f41e2def14898f5377c0bc684fd5 100644
(file)
--- a/
libhashkit/hsieh.cc
+++ b/
libhashkit/hsieh.cc
@@
-17,7
+17,8
@@
+(uint32_t)(((const uint8_t *)(d))[0]) )
#endif
+(uint32_t)(((const uint8_t *)(d))[0]) )
#endif
-uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context __attribute__((unused)))
+#ifdef HAVE_HSIEH_HASH
+uint32_t hashkit_hsieh(const char *key, size_t key_length, void *)
{
uint32_t hash = 0, tmp;
int rem;
{
uint32_t hash = 0, tmp;
int rem;
@@
-67,4
+68,9
@@
uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context __attri
return hash;
}
return hash;
}
-
+#else
+uint32_t hashkit_hsieh(const char *, size_t , void *)
+{
+ return 0;
+}
+#endif