Fix IO call to use bool.
[awesomized/libmemcached] / libmemcached / do.c
index d673f187149413b858014e0b91c67aebe52d2c4c..fa33f51ec30122cb521b47971802e54b58726cf2 100644 (file)
@@ -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)
-    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, (bool) with_flush);
 
   if (sent_length == -1 || (size_t)sent_length != command_length)
     rc= MEMCACHED_WRITE_FAILURE;