X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fdo.c;fp=libmemcached%2Fdo.c;h=31d4584035aed7b18f70a7e36bc03f1210a9c934;hb=857ca43d65fe6a52474641130312d26d125bef15;hp=fa33f51ec30122cb521b47971802e54b58726cf2;hpb=9b767485048053ad0b4c2897a0d3784aa6e9fe10;p=awesomized%2Flibmemcached diff --git a/libmemcached/do.c b/libmemcached/do.c index fa33f51e..31d45840 100644 --- 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, - size_t command_length, uint8_t with_flush) + size_t command_length, bool with_flush) { memcached_return_t rc; ssize_t sent_length; @@ -23,7 +23,7 @@ memcached_return_t memcached_do(memcached_server_st *ptr, const void *command, if (ptr->type == MEMCACHED_CONNECTION_UDP && with_flush && ptr->write_buffer_offset > UDP_DATAGRAM_HEADER_LENGTH) memcached_io_write(ptr, NULL, 0, true); - sent_length= memcached_io_write(ptr, command, command_length, (bool) 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;