projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Cleanup from memaslap
[awesomized/libmemcached]
/
libhashkit
/
md5.c
diff --git
a/libhashkit/md5.c
b/libhashkit/md5.c
index 7371c6d1093235c2222152007bbdb7d976685afc..1af5e6c00c834d967b148924780c32f1525422ad 100644
(file)
--- a/
libhashkit/md5.c
+++ b/
libhashkit/md5.c
@@
-1,5
+1,5
@@
/*
/*
- This Library has been modified from its original form by
+ This Library has been modified from its original form by
Brian Aker (brian@tangent.org)
See below for original Copyright.
Brian Aker (brian@tangent.org)
See below for original Copyright.
@@
-29,7
+29,7
@@
These notices must be retained in any copies of any part of this
documentation and/or software.
*/
documentation and/or software.
*/
-#include
"common.h"
+#include
<libhashkit/common.h>
#include <string.h>
#include <sys/types.h>
#include <string.h>
#include <sys/types.h>
@@
-125,7
+125,7
@@
Rotation is separate from addition to prevent recomputation.
}
}
-/*
+/*
Just a simple method for getting the signature
result must be == 16
*/
Just a simple method for getting the signature
result must be == 16
*/
@@
-352,9
+352,10
@@
unsigned int len)
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
-uint32_t hashkit_md5(const char *key, size_t key_length, void *context
__attribute__((unused))
)
+uint32_t hashkit_md5(const char *key, size_t key_length, void *context)
{
unsigned char results[16];
{
unsigned char results[16];
+ (void)context;
md5_signature((unsigned char*)key, (unsigned int)key_length, results);
md5_signature((unsigned char*)key, (unsigned int)key_length, results);