projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in additional fix for manpages.
[m6w6/libmemcached]
/
libhashkit
/
fnv.c
diff --git
a/libhashkit/fnv.c
b/libhashkit/fnv.c
index ee3754d84371a0590e18328189d0d10b078375d3..fffb94a492aebf86815942322d9511f0825a7506 100644
(file)
--- a/
libhashkit/fnv.c
+++ b/
libhashkit/fnv.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>
/* FNV hash'es lifted from Dustin Sallings work */
static uint64_t FNV_64_INIT= UINT64_C(0xcbf29ce484222325);
/* FNV hash'es lifted from Dustin Sallings work */
static uint64_t FNV_64_INIT= UINT64_C(0xcbf29ce484222325);
@@
-14,10
+14,11
@@
static uint64_t FNV_64_PRIME= UINT64_C(0x100000001b3);
static uint32_t FNV_32_INIT= 2166136261UL;
static uint32_t FNV_32_PRIME= 16777619;
static uint32_t FNV_32_INIT= 2166136261UL;
static uint32_t FNV_32_PRIME= 16777619;
-uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void *context
__attribute__((unused))
)
+uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void *context)
{
/* Thanks to pierre@demartines.com for the pointer */
uint64_t hash= FNV_64_INIT;
{
/* Thanks to pierre@demartines.com for the pointer */
uint64_t hash= FNV_64_INIT;
+ (void)context;
for (size_t x= 0; x < key_length; x++)
{
for (size_t x= 0; x < key_length; x++)
{
@@
-28,9
+29,10
@@
uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void *context __att
return (uint32_t)hash;
}
return (uint32_t)hash;
}
-uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void *context
__attribute__((unused))
)
+uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void *context)
{
uint32_t hash= (uint32_t) FNV_64_INIT;
{
uint32_t hash= (uint32_t) FNV_64_INIT;
+ (void)context;
for (size_t x= 0; x < key_length; x++)
{
for (size_t x= 0; x < key_length; x++)
{
@@
-42,9
+44,10
@@
uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void *context __at
return hash;
}
return hash;
}
-uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void *context
__attribute__((unused))
)
+uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void *context)
{
uint32_t hash= FNV_32_INIT;
{
uint32_t hash= FNV_32_INIT;
+ (void)context;
for (size_t x= 0; x < key_length; x++)
{
for (size_t x= 0; x < key_length; x++)
{
@@
-56,9
+59,10
@@
uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void *context __att
return hash;
}
return hash;
}
-uint32_t hashkit_fnv1a_32(const char *key, size_t key_length, void *context
__attribute__((unused))
)
+uint32_t hashkit_fnv1a_32(const char *key, size_t key_length, void *context)
{
uint32_t hash= FNV_32_INIT;
{
uint32_t hash= FNV_32_INIT;
+ (void)context;
for (size_t x= 0; x < key_length; x++)
{
for (size_t x= 0; x < key_length; x++)
{