summaryrefslogtreecommitdiff
path: root/src/mod_cml_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_cml_funcs.c')
-rw-r--r--src/mod_cml_funcs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_cml_funcs.c b/src/mod_cml_funcs.c
index 07c7673..82bca10 100644
--- a/src/mod_cml_funcs.c
+++ b/src/mod_cml_funcs.c
@@ -93,7 +93,7 @@ int f_file_mtime(lua_State *L) {
return 1;
}
-int f_dir_files_iter(lua_State *L) {
+static int f_dir_files_iter(lua_State *L) {
DIR *d;
struct dirent *de;
@@ -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;
}