Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-22 22:03:33 +0400
committerFelix Fietkau <nbd@openwrt.org>2012-10-22 22:03:36 +0400
commitdb38b74ac60edf213f0de1a5e6e0d5ab027b4cae (patch)
treeb34f929acc36689563d31911e02a2f656bc4acc2 /lua
parent42cd90bf4b63a591a1ef9e0b6a569b66d461edfb (diff)
add declarations for lua{open,close}_uloop to avoid warnings
Diffstat (limited to 'lua')
-rw-r--r--lua/uloop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/uloop.c b/lua/uloop.c
index 900e140..51f53c2 100644
--- a/lua/uloop.c
+++ b/lua/uloop.c
@@ -226,6 +226,10 @@ static luaL_reg uloop_func[] = {
{NULL, NULL},
};
+/* avoid warnings about missing declarations */
+int luaopen_uloop(lua_State *L);
+int luaclose_uloop(lua_State *L);
+
int luaopen_uloop(lua_State *L)
{
state = L;