From db38b74ac60edf213f0de1a5e6e0d5ab027b4cae Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 22 Oct 2012 20:03:33 +0200 Subject: [PATCH] add declarations for lua{open,close}_uloop to avoid warnings --- lua/uloop.c | 4 ++++ 1 file changed, 4 insertions(+) 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;