add declarations for lua{open,close}_uloop to avoid warnings
authorFelix Fietkau <nbd@openwrt.org>
Mon, 22 Oct 2012 18:03:33 +0000 (20:03 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 22 Oct 2012 18:03:36 +0000 (20:03 +0200)
lua/uloop.c

index 900e140..51f53c2 100644 (file)
@@ -226,6 +226,10 @@ static luaL_reg uloop_func[] = {
        {NULL, NULL},
 };
 
        {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;
 int luaopen_uloop(lua_State *L)
 {
        state = L;