Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b4da4eccbb8dee090b9d1c8330669ef7 > files > 3

libquvi-0.9.4-7.mga7.src.rpm

diff -up ./src/lua/init.c.tv ./src/lua/init.c
--- ./src/lua/init.c.tv	2014-06-29 02:03:36.639641484 +0200
+++ ./src/lua/init.c	2014-06-29 02:14:05.637612281 +0200
@@ -80,10 +80,10 @@ QuviError l_init(_quvi_t q)
     return (QUVI_ERROR_LUA_INIT);
 
   luaL_openlibs(q->handle.lua);
-  luaL_register(q->handle.lua, "quvi", quvi_reg_meth);
-  luaL_register(q->handle.lua, "quvi.http", quvi_http_reg_meth);
-  luaL_register(q->handle.lua, "quvi.crypto", quvi_crypto_reg_meth);
-  luaL_register(q->handle.lua, "quvi.base64", quvi_base64_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_http_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_crypto_reg_meth);
+  luaL_newlib(q->handle.lua, quvi_base64_reg_meth);
 
   return (QUVI_OK);
 }