libmemcached_config.h should not be installed
[m6w6/libmemcached] / libmemcached / memcached_do.c
index c4bf574f641d8a28d36ce649db884bc20d913c74..91f7506bc740b306e5e817c20b99143709aaf466 100644 (file)
@@ -1,6 +1,6 @@
 #include "common.h"
 
-memcached_return memcached_do(memcached_server_st *ptr, char *command, 
+memcached_return memcached_do(memcached_server_st *ptr, const void *command, 
                               size_t command_length, uint8_t with_flush)
 {
   memcached_return rc;
@@ -14,7 +14,7 @@ memcached_return memcached_do(memcached_server_st *ptr, char *command,
 
   sent_length= memcached_io_write(ptr, command, command_length, with_flush);
 
-  if (sent_length == -1 || sent_length != command_length)
+  if (sent_length == -1 || (size_t)sent_length != command_length)
     rc= MEMCACHED_WRITE_FAILURE;
   else
     memcached_server_response_increment(ptr);