summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-29 15:38:34 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-11-16 15:26:13 +0100
commitaec143997b9aba65f7ea702d7cd42b553afe335f (patch)
treefd1221e2b575746f40ed279488d5cba59e15d543
parent881d6102cf1f7bc6b54ab395c5e4addbfe1ed34c (diff)
lua: fix lua 5.2 compatibility
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--lua.c2
1 files changed, 1 insertions, 1 deletions
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 */