lua: fix lua 5.2 compatibility
authorFelix Fietkau <nbd@openwrt.org>
Sun, 29 Sep 2013 13:38:34 +0000 (15:38 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 16 Nov 2013 14:26:13 +0000 (15:26 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
lua.c

diff --git a/lua.c b/lua.c
index 55efaaa92c979c24c4c151e13854812d9530a7f7..aa27ec0837f40e2e9c714acdb02fb51562000fb8 100644 (file)
--- 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 */