workaround some warnings from libmemcache
- as libmemcache isn't maintained anymore, it is unlikely the function signature get fixed (should be const char* instead of char*) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2413 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.23
parent
ff1fe3a8ee
commit
c60b60e7f0
|
@ -211,7 +211,7 @@ int f_memcache_exists(lua_State *L) {
|
|||
}
|
||||
|
||||
if (NULL == (r = mc_aget(mc,
|
||||
lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
(char*) lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
|
||||
lua_pushboolean(L, 0);
|
||||
return 1;
|
||||
|
@ -248,7 +248,7 @@ int f_memcache_get_string(lua_State *L) {
|
|||
}
|
||||
|
||||
if (NULL == (r = mc_aget(mc,
|
||||
lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
(char*) lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ int f_memcache_get_long(lua_State *L) {
|
|||
}
|
||||
|
||||
if (NULL == (r = mc_aget(mc,
|
||||
lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
(char*) lua_tostring(L, 1), lua_strlen(L, 1)))) {
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue