/*
*/
-#include <memcached.h>
+#include "common.h"
static char *memcached_stat_keys[] = {
"pid",
if (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE)
return MEMCACHED_WRITE_FAILURE;
- sent_length= write(ptr->hosts[server_key].fd, buffer, send_length);
+ sent_length= send(ptr->hosts[server_key].fd, buffer, send_length, 0);
if (sent_length == -1 || sent_length != send_length)
return MEMCACHED_WRITE_FAILURE;
{
char **list= (char **)malloc(sizeof(memcached_stat_keys));
+ memset(list, 0, sizeof(memcached_stat_keys));
+
if (!list)
{
*error= MEMCACHED_MEMORY_ALLOCATION_FAILURE;