Browse Source

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 13 years ago
parent
commit
c60b60e7f0
  1. 6
      src/mod_cml_funcs.c

6
src/mod_cml_funcs.c

@ -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…
Cancel
Save