projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Added files generated by make to .bzrignore, sorted and simplified it to make it...
[m6w6/libmemcached]
/
libmemcached
/
memcached_dump.c
diff --git
a/libmemcached/memcached_dump.c
b/libmemcached/memcached_dump.c
index 4899df56feafbea3eae51209d0c97b69f02a0cc3..393e140a557e50602876038b05b7500b25193d6f 100644
(file)
--- a/
libmemcached/memcached_dump.c
+++ b/
libmemcached/memcached_dump.c
@@
-9,7
+9,7
@@
#include "common.h"
static memcached_return ascii_dump(memcached_st *ptr, memcached_dump_func *callback, void *context, uint32_t number_of_callbacks)
{
#include "common.h"
static memcached_return ascii_dump(memcached_st *ptr, memcached_dump_func *callback, void *context, uint32_t number_of_callbacks)
{
- memcached_return rc;
+ memcached_return rc
= 0
;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
size_t send_length;
uint32_t server_key;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
size_t send_length;
uint32_t server_key;
@@
-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++)
{
/* 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);
rc= memcached_do(&ptr->hosts[server_key], buffer, send_length, 1);