lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled
authorFelix Fietkau <nbd@openwrt.org>
Mon, 28 May 2012 22:41:27 +0000 (00:41 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 28 May 2012 22:41:27 +0000 (00:41 +0200)
lua/ubus.c

index 85c12662190df0093fc16e47f472108795aaea03..9f2a6e933f546e53e0f8efa05c8b52e809e01130 100644 (file)
@@ -373,6 +373,8 @@ static const luaL_Reg ubus[] = {
        { NULL, NULL },
 };
 
+/* avoid missing prototype warning */
+int luaopen_ubus(lua_State *L);
 
 int
 luaopen_ubus(lua_State *L)