--- a/lm_connection.c Wed Nov 28 01:55:12 2012 +0200
+++ b/lm_connection.c Wed Nov 28 01:56:15 2012 +0200
@@ -596,10 +596,10 @@
luaL_newmetatable (L, "loudmouth.connection");
lua_pushvalue (L, -1);
lua_setfield (L, -2, "__index");
- luaL_register (L, NULL, reg_m_lm_connection);
+ luaL_setfuncs (L, reg_m_lm_connection, 0);
lua_pop (L, 1);
lua_newtable (L); // XXX we can specify here exact amount of fields
- luaL_register (L, NULL, reg_f_lm_connection);
+ luaL_setfuncs (L, reg_f_lm_connection, 0);
return 1;
}