aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-08 16:07:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-08 16:07:25 +0100
commit7cc8754ad93be42cf7cd6f1cba68621c93accf89 (patch)
tree7a433b3ae9ec12b73090afd874b2a12399277cee /src/lua/lua_task.c
parent4e4beec4cdfa633546a599823280af96b0b61bb7 (diff)
downloadrspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.tar.gz
rspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.zip
Adopt to lua 5.2.
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 154eed731..014a994e0 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2051,7 +2051,7 @@ gint
luaopen_textpart (lua_State * L)
{
lua_newclass (L, "rspamd{textpart}", textpartlib_m);
- luaL_openlib (L, "rspamd_textpart", null_reg, 0);
+ luaL_register (L, "rspamd_textpart", null_reg);
lua_pop (L, 1); /* remove metatable from stack */
@@ -2062,7 +2062,7 @@ gint
luaopen_mimepart (lua_State * L)
{
lua_newclass (L, "rspamd{mimepart}", mimepartlib_m);
- luaL_openlib (L, "rspamd_mimepart", null_reg, 0);
+ luaL_register (L, "rspamd_mimepart", null_reg);
lua_pop (L, 1); /* remove metatable from stack */
@@ -2073,7 +2073,7 @@ gint
luaopen_image (lua_State * L)
{
lua_newclass (L, "rspamd{image}", imagelib_m);
- luaL_openlib (L, "rspamd_image", null_reg, 0);
+ luaL_register (L, "rspamd_image", null_reg);
lua_pop (L, 1); /* remove metatable from stack */
@@ -2084,7 +2084,7 @@ gint
luaopen_url (lua_State * L)
{
lua_newclass (L, "rspamd{url}", urllib_m);
- luaL_openlib (L, "rspamd_url", null_reg, 0);
+ luaL_register (L, "rspamd_url", null_reg);
lua_pop (L, 1); /* remove metatable from stack */