projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Cleanup on uint8 to bool for quit.
[m6w6/libmemcached]
/
libmemcached
/
auto.c
diff --git
a/libmemcached/auto.c
b/libmemcached/auto.c
index ba7ea6d31dd4d59ea727a177a3e2efd72dc8f7a1..608324df23ff8d99acde7960997ab74cd8c824a1 100644
(file)
--- a/
libmemcached/auto.c
+++ b/
libmemcached/auto.c
@@
-43,7
+43,7
@@
static memcached_return_t text_incr_decr(memcached_st *ptr,
unlikely (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
return MEMCACHED_WRITE_FAILURE;
unlikely (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
return MEMCACHED_WRITE_FAILURE;
- rc= memcached_do(instance, buffer, send_length,
1
);
+ rc= memcached_do(instance, buffer, send_length,
true
);
if (no_reply || rc != MEMCACHED_SUCCESS)
return rc;
if (no_reply || rc != MEMCACHED_SUCCESS)
return rc;
@@
-112,7
+112,7
@@
static memcached_return_t binary_incr_decr(memcached_st *ptr, uint8_t cmd,
request.message.body.expiration= htonl((uint32_t) expiration);
if ((memcached_do(instance, request.bytes,
request.message.body.expiration= htonl((uint32_t) expiration);
if ((memcached_do(instance, request.bytes,
- sizeof(request.bytes),
0)!=
MEMCACHED_SUCCESS) ||
+ sizeof(request.bytes),
false) !=
MEMCACHED_SUCCESS) ||
(memcached_io_write(instance, key, key_length, true) == -1))
{
memcached_io_reset(instance);
(memcached_io_write(instance, key, key_length, true) == -1))
{
memcached_io_reset(instance);