From 508dce9c1452eb3dbf071ff3c5e55a0f130bbb3f Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Fri, 8 Jun 2012 02:19:07 +0200 Subject: [PATCH] Replaced already in Lua 5.1 deprecated lua_open() In Lua 5.1 lua_open directly calls luaL_newstate, but was deprecated. In Lua 5.2 lua_open was removed. Signed-off-by: Arvydas Sidorenko --- common/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/version.c b/common/version.c index 6295bf90..bbca1e41 100644 --- a/common/version.c +++ b/common/version.c @@ -50,7 +50,7 @@ eprint_version(void) #endif printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME); - lua_State *L = lua_open(); + lua_State *L = luaL_newstate(); luaopen_base(L); lua_getglobal(L, "_VERSION"); printf(" • Compiled against " LUA_RELEASE