X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fketama.c;h=502b1c74ed405325cf4cd3013e9d549cb59a3adf;hb=3928e14fbe1ed17cefe9bdbbb282fb7ecf053e7a;hp=50309bbc693567ae623f863b1f04d582dad3fca0;hpb=1fefa980a1f3a88df3eb1db02e2319d754aebe75;p=m6w6%2Flibmemcached diff --git a/libhashkit/ketama.c b/libhashkit/ketama.c index 50309bbc..502b1c74 100644 --- a/libhashkit/ketama.c +++ b/libhashkit/ketama.c @@ -6,6 +6,7 @@ * the COPYING file in the parent directory for full text. */ +#include #include "common.h" static uint32_t ketama_server_hash(const char *key, unsigned int key_length, int alignment) @@ -119,7 +120,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