diff --git a/src/lua.c b/src/lua.c
index 3b8b3da075b56383ee4a02edd163a9e25f3220f7..ba5fbceac593a53ed33977fbf87e650284c883b0 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
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},
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);
}