Merge in changes for ICC fix.
[awesomized/libmemcached] / libhashkit / ketama.c
index 50309bbc693567ae623f863b1f04d582dad3fca0..a510e57ab1ea802026d185cfcde3693c1fec7633 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include "common.h"
+#include <math.h>
 
+#if 0
 static uint32_t ketama_server_hash(const char *key, unsigned int key_length, int alignment)
 {
   unsigned char results[16];
@@ -119,7 +121,7 @@ int update_continuum(hashkit_st *hashkit)
 
       if (hashkit->continuum_key_fn == NULL)
       {
-        sort_host_length= (size_t) snprintf(sort_host, HASHKIT_CONTINUUM_KEY_SIZE, "%d",
+        sort_host_length= (size_t) snprintf(sort_host, HASHKIT_CONTINUUM_KEY_SIZE, "%u",
                                             points_index);
       }
       else
@@ -159,3 +161,4 @@ int update_continuum(hashkit_st *hashkit)
 
   return 0;
 }
+#endif