server_key= memcached_generate_hash(ptr, key, key_length);
- protocol_binary_request_incr request= {0};
+ protocol_binary_request_incr request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= cmd;
return MEMCACHED_WRITE_FAILURE;
}
- return memcached_response(&ptr->hosts[server_key], value, sizeof(*value), NULL);
+ return memcached_response(&ptr->hosts[server_key], (char*)value, sizeof(*value), NULL);
}
memcached_return memcached_increment(memcached_st *ptr,