From: Felix Fietkau Date: Sun, 29 Sep 2013 13:38:34 +0000 (+0200) Subject: lua: fix lua 5.2 compatibility X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aec143997b9aba65f7ea702d7cd42b553afe335f;p=oweals%2Fuhttpd.git lua: fix lua 5.2 compatibility Signed-off-by: Felix Fietkau --- diff --git a/lua.c b/lua.c index 55efaaa..aa27ec0 100644 --- a/lua.c +++ b/lua.c @@ -144,7 +144,7 @@ static lua_State *uh_lua_state_init(void) lua_State *L; int ret; - L = lua_open(); + L = luaL_newstate(); luaL_openlibs(L); /* build uhttpd api table */