projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed unittests and vc-changelog.
[awesomized/libmemcached]
/
libmemcached
/
flush.c
diff --git
a/libmemcached/flush.c
b/libmemcached/flush.c
index c8428f7015f979deec1f3e2eca63d18143079fdd..425d4576b8abeae82685d9b4f9b2b4ac90e970ca 100644
(file)
--- a/
libmemcached/flush.c
+++ b/
libmemcached/flush.c
@@
-55,7
+55,6
@@
static memcached_return_t memcached_flush_textual(memcached_st *ptr,
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
time_t expiration)
{
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
time_t expiration)
{
- uint32_t x;
protocol_binary_request_flush request= {.bytes= {0}};
unlikely (memcached_server_count(ptr) == 0)
protocol_binary_request_flush request= {.bytes= {0}};
unlikely (memcached_server_count(ptr) == 0)
@@
-68,7
+67,7
@@
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
request.message.header.request.bodylen= htonl(request.message.header.request.extlen);
request.message.body.expiration= htonl((uint32_t) expiration);
request.message.header.request.bodylen= htonl(request.message.header.request.extlen);
request.message.body.expiration= htonl((uint32_t) expiration);
- for (x= 0; x < memcached_server_count(ptr); x++)
+ for (
uint32_t
x= 0; x < memcached_server_count(ptr); x++)
{
memcached_server_write_instance_st instance=
memcached_server_instance_fetch(ptr, x);
{
memcached_server_write_instance_st instance=
memcached_server_instance_fetch(ptr, x);
@@
-82,15
+81,14
@@
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_FLUSH;
}
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_FLUSH;
}
- if (memcached_do(instance, request.bytes,
- sizeof(request.bytes), true) != MEMCACHED_SUCCESS)
+ if (memcached_do(instance, request.bytes, sizeof(request.bytes), true) != MEMCACHED_SUCCESS)
{
memcached_io_reset(instance);
return MEMCACHED_WRITE_FAILURE;
}
}
{
memcached_io_reset(instance);
return MEMCACHED_WRITE_FAILURE;
}
}
- for (x= 0; x < memcached_server_count(ptr); x++)
+ for (
uint32_t
x= 0; x < memcached_server_count(ptr); x++)
{
memcached_server_write_instance_st instance=
memcached_server_instance_fetch(ptr, x);
{
memcached_server_write_instance_st instance=
memcached_server_instance_fetch(ptr, x);