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_config.c | |
parent | 4e4beec4cdfa633546a599823280af96b0b61bb7 (diff) | |
download | rspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.tar.gz rspamd-7cc8754ad93be42cf7cd6f1cba68621c93accf89.zip |
Adopt to lua 5.2.
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index b84879df0..1da50ad19 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -960,7 +960,7 @@ gint luaopen_config (lua_State * L) { lua_newclass (L, "rspamd{config}", configlib_m); - luaL_openlib (L, "rspamd_config", null_reg, 0); + luaL_register (L, "rspamd_config", null_reg); lua_pop (L, 1); /* remove metatable from stack */ @@ -971,7 +971,7 @@ gint luaopen_radix (lua_State * L) { lua_newclass (L, "rspamd{radix}", radixlib_m); - luaL_openlib (L, "rspamd_radix", null_reg, 0); + luaL_register (L, "rspamd_radix", null_reg); lua_pop (L, 1); /* remove metatable from stack */ @@ -982,7 +982,7 @@ gint luaopen_hash_table (lua_State * L) { lua_newclass (L, "rspamd{hash_table}", hashlib_m); - luaL_openlib (L, "rspamd_hash_table", null_reg, 0); + luaL_register (L, "rspamd_hash_table", null_reg); lua_pop (L, 1); /* remove metatable from stack */ @@ -1001,8 +1001,8 @@ luaopen_trie (lua_State * L) lua_pushstring (L, "rspamd{trie}"); lua_rawset (L, -3); - luaL_openlib (L, NULL, trielib_m, 0); - luaL_openlib(L, "rspamd_trie", trielib_f, 0); + luaL_register (L, NULL, trielib_m); + luaL_register (L, "rspamd_trie", trielib_f); lua_pop (L, 1); /* remove metatable from stack */ |