From: Trond Norbye Date: Tue, 19 Aug 2008 21:13:23 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: _23~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2207cb22d3023c1d49abbc06c768cb724f5c7a4d;p=m6w6%2Flibmemcached Fix compiler warning Cast the pointer to the uint64_t where the result should be stored to a char pointer (memcached_response expects char pointer). --- diff --git a/libmemcached/memcached_auto.c b/libmemcached/memcached_auto.c index f67b6298..81e594e9 100644 --- a/libmemcached/memcached_auto.c +++ b/libmemcached/memcached_auto.c @@ -98,7 +98,7 @@ static memcached_return binary_incr_decr(memcached_st *ptr, uint8_t 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,