From: Padraig O'Sullivan Date: Sat, 18 Jul 2009 17:10:35 +0000 (-0400) Subject: Build fixes for the memcached_dump.c file. X-Git-Tag: 0.32~7^2^2~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d8394605ecf1b1904058c00dfe39a2de4dc0d20d;p=awesomized%2Flibmemcached Build fixes for the memcached_dump.c file. --- diff --git a/libmemcached/memcached_dump.c b/libmemcached/memcached_dump.c index 88fec3a8..393e140a 100644 --- a/libmemcached/memcached_dump.c +++ b/libmemcached/memcached_dump.c @@ -23,8 +23,8 @@ static memcached_return ascii_dump(memcached_st *ptr, memcached_dump_func *callb /* 256 I BELIEVE is the upper limit of slabs */ for (x= 0; x < 256; x++) { - send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, - "stats cachedump %u 0 0\r\n", x); + send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, + "stats cachedump %u 0 0\r\n", x); rc= memcached_do(&ptr->hosts[server_key], buffer, send_length, 1);