From: Brian McCallister Date: Mon, 15 Jun 2009 03:10:06 +0000 (+0000) Subject: change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar... X-Git-Tag: 2.3.3~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c19451980063d5630e665a5b3ac79d5832c35f76;p=apache change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar Arahesis git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784644 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_apr.c b/modules/lua/lua_apr.c index bcedf41ca3..5078be129f 100644 --- a/modules/lua/lua_apr.c +++ b/modules/lua/lua_apr.c @@ -75,7 +75,7 @@ static const luaL_reg lua_table_methods[] = { AP_LUA_DECLARE(int) ap_lua_init(lua_State *L, apr_pool_t *p) { luaL_newmetatable(L, "Apr.Table"); - luaL_register(L, "apr_table", lua_table_methods, 0); + luaL_register(L, "apr_table", lua_table_methods); lua_pushstring(L, "__index"); lua_pushstring(L, "get"); lua_gettable(L, 2);