From: Ruben Kerkhof Date: Sun, 14 Aug 2016 17:32:37 +0000 (+0200) Subject: Lua plugin: fix old style definition X-Git-Tag: collectd-5.6.0~32 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=e35c68e1999cab48e8b912f7e90b535d1afe9353 Lua plugin: fix old style definition lua.c: In function ‘module_register’: lua.c:588:6: warning: old-style function definition [-Wold-style-definition] void module_register() { ^~~~~~~~~~~~~~~ --- diff --git a/src/lua.c b/src/lua.c index ee177d73..ba5fbcea 100644 --- a/src/lua.c +++ b/src/lua.c @@ -585,7 +585,7 @@ static int lua_shutdown(void) /* {{{ */ return (0); } /* }}} int lua_shutdown */ -void module_register() { +void module_register(void) { plugin_register_complex_config("lua", lua_config); plugin_register_shutdown("lua", lua_shutdown); }