projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
02ae3ec
)
Fix compiler warning
author
Trond Norbye
<trond.norbye@sun.com>
Tue, 19 Aug 2008 21:13:23 +0000
(23:13 +0200)
committer
Trond Norbye
<trond.norbye@sun.com>
Tue, 19 Aug 2008 21:13:23 +0000
(23:13 +0200)
Cast the pointer to the uint64_t where the result should be stored to a char
pointer (memcached_response expects char pointer).
libmemcached/memcached_auto.c
patch
|
blob
|
history
diff --git
a/libmemcached/memcached_auto.c
b/libmemcached/memcached_auto.c
index f67b62981f72a8a361a617dde554882215522548..81e594e9e0e0239196cdd77eec3ed664ee2d7585 100644
(file)
--- 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,