diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-08 16:07:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-08 16:07:25 +0100 |
commit | 7cc8754ad93be42cf7cd6f1cba68621c93accf89 (patch) | |
tree | 7a433b3ae9ec12b73090afd874b2a12399277cee /src/lua/lua_classifier.c | |
parent | 4e4beec4cdfa633546a599823280af96b0b61bb7 (diff) | |
download | rspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.tar.gz rspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.zip |
Adopt to lua 5.2.
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r-- | src/lua/lua_classifier.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c index 202d29af3..33e7ea9f2 100644 --- a/src/lua/lua_classifier.c +++ b/src/lua/lua_classifier.c @@ -412,7 +412,7 @@ gint luaopen_classifier (lua_State * L) { lua_newclass (L, "rspamd{classifier}", classifierlib_m); - luaL_openlib (L, "rspamd_classifier", null_reg, 0); + luaL_register (L, "rspamd_classifier", null_reg); lua_pop (L, 1); /* remove metatable from stack */ @@ -423,7 +423,7 @@ gint luaopen_statfile (lua_State * L) { lua_newclass (L, "rspamd{statfile}", statfilelib_m); - luaL_openlib (L, "rspamd_statfile", null_reg, 0); + luaL_register (L, "rspamd_statfile", null_reg); lua_pop (L, 1); /* remove metatable from stack */ |