From ad84eb52db7afbe020452f93aaceca1c259b9647 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 20 May 2008 20:26:58 +0200 Subject: [PATCH] [lua] Remove deprecated luaL_openlib() calls Signed-off-by: Julien Danjou --- lua.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua.c b/lua.c index ed9756c43..afe67ac5e 100644 --- a/lua.c +++ b/lua.c @@ -307,13 +307,13 @@ luaA_parserc(const char *rcfile) luaL_openlibs(L); /* Export awesome lib */ - luaL_openlib(L, "awesome", awesome_lib, 0); + luaL_register(L, "awesome", awesome_lib); /* Export hooks lib */ - luaL_openlib(L, "hooks", awesome_hooks_lib, 0); + luaL_register(L, "hooks", awesome_hooks_lib); /* Export hooks lib */ - luaL_openlib(L, "mouse", awesome_mouse_lib, 0); + luaL_register(L, "mouse", awesome_mouse_lib); /* Export tag */ luaA_openlib(L, "tag", awesome_tag_methods, awesome_tag_meta);