Initial support for Windows
[m6w6/libmemcached] / libhashkit / md5.c
index d550c77300c94d493da827251bf65de6a525ca7f..7371c6d1093235c2222152007bbdb7d976685afc 100644 (file)
@@ -169,8 +169,8 @@ static void MD5Update (
 
   /* Update number of bits */
   if ((context->count[0] += ((UINT4)inputLen << 3))
-   < ((UINT4)inputLen << 3))
- context->count[1]++;
+      < ((UINT4)inputLen << 3))
   context->count[1]++;
   context->count[1] += ((UINT4)inputLen >> 29);
 
   partLen = 64 - idx;
@@ -352,7 +352,7 @@ unsigned int len)
    (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
 }
 
-uint32_t hashkit_md5(const char *key, size_t key_length)
+uint32_t hashkit_md5(const char *key, size_t key_length, void *context __attribute__((unused)))
 {
   unsigned char results[16];