projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Bool fix.
[awesomized/libmemcached]
/
libmemcached
/
do.c
diff --git
a/libmemcached/do.c
b/libmemcached/do.c
index d673f187149413b858014e0b91c67aebe52d2c4c..31d4584035aed7b18f70a7e36bc03f1210a9c934 100644
(file)
--- a/
libmemcached/do.c
+++ b/
libmemcached/do.c
@@
-1,7
+1,7
@@
#include "common.h"
memcached_return_t memcached_do(memcached_server_st *ptr, const void *command,
#include "common.h"
memcached_return_t memcached_do(memcached_server_st *ptr, const void *command,
- size_t command_length,
uint8_t
with_flush)
+ size_t command_length,
bool
with_flush)
{
memcached_return_t rc;
ssize_t sent_length;
{
memcached_return_t rc;
ssize_t sent_length;
@@
-21,9
+21,9
@@
memcached_return_t memcached_do(memcached_server_st *ptr, const void *command,
** otherwise we might get a partial write.
**/
if (ptr->type == MEMCACHED_CONNECTION_UDP && with_flush && ptr->write_buffer_offset > UDP_DATAGRAM_HEADER_LENGTH)
** otherwise we might get a partial write.
**/
if (ptr->type == MEMCACHED_CONNECTION_UDP && with_flush && ptr->write_buffer_offset > UDP_DATAGRAM_HEADER_LENGTH)
- memcached_io_write(ptr, NULL, 0,
1
);
+ memcached_io_write(ptr, NULL, 0,
true
);
- sent_length= memcached_io_write(ptr, command, command_length,
(char)
with_flush);
+ sent_length= memcached_io_write(ptr, command, command_length, with_flush);
if (sent_length == -1 || (size_t)sent_length != command_length)
rc= MEMCACHED_WRITE_FAILURE;
if (sent_length == -1 || (size_t)sent_length != command_length)
rc= MEMCACHED_WRITE_FAILURE;