From: Felix Fietkau Date: Mon, 28 May 2012 22:41:27 +0000 (+0200) Subject: lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=960c342b4acf02ab5708dfdcd7f36e86644e9a51 lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled --- diff --git a/lua/ubus.c b/lua/ubus.c index 85c1266..9f2a6e9 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -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)