From c60b60e7f0afb5178b5ef3a5126db498a990134f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 7 Mar 2009 21:05:21 +0000 Subject: [PATCH] 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 --- src/mod_cml_funcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_cml_funcs.c b/src/mod_cml_funcs.c index 07c76738..ca815d7e 100644 --- a/src/mod_cml_funcs.c +++ b/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; }