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-c4023f1b3aa9
svn/tags/lighttpd-1.4.23
Stefan Bühler 2009-03-07 21:05:21 +00:00
parent ff1fe3a8ee
commit c60b60e7f0
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}