From 563a106f3a57e460b9c5ea06a2eb4e6456f9e080 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 2 Sep 2009 19:15:51 +0400 Subject: * Fix lua API --- src/lua/lua_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_config.c') diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 7eb03f871..c385d24f7 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -50,7 +50,7 @@ lua_check_config (lua_State *L) { void *ud = luaL_checkudata (L, 1, "Rspamd.config"); luaL_argcheck (L, ud != NULL, 1, "'config' expected"); - return (struct config_file *)ud; + return *((struct config_file **)ud); } static struct metric * @@ -58,7 +58,7 @@ lua_check_metric (lua_State *L) { void *ud = luaL_checkudata (L, 1, "Rspamd.metric"); luaL_argcheck (L, ud != NULL, 1, "'metric' expected"); - return (struct metric *)ud; + return *((struct metric **)ud); } /*** Config functions ***/ -- cgit v1.2.3