X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flua.c;h=ba5fbceac593a53ed33977fbf87e650284c883b0;hb=e67a651b07f09fbd4850b9fa5b842f1b87d1992e;hp=3b8b3da075b56383ee4a02edd163a9e25f3220f7;hpb=e61b8a91ed7c21e01ff40006837d319eaeef24ab;p=collectd.git diff --git a/src/lua.c b/src/lua.c index 3b8b3da0..ba5fbcea 100644 --- a/src/lua.c +++ b/src/lua.c @@ -362,7 +362,7 @@ static int lua_cb_register_write(lua_State *L) /* {{{ */ return 0; } /* }}} int lua_cb_register_write */ -static luaL_Reg collectdlib[] = { +static const luaL_Reg collectdlib[] = { {"log_debug", lua_cb_log_debug}, {"log_error", lua_cb_log_error}, {"log_info", lua_cb_log_info}, @@ -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); }