From: Ruben Kerkhof Date: Sun, 14 Aug 2016 13:10:04 +0000 (+0200) Subject: Lua plugin: make function array const X-Git-Tag: collectd-5.6.0~33^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=368f4ecd555efbef0cdd61a18f9b3ca5115f74c2;p=collectd.git Lua plugin: make function array const --- diff --git a/src/lua.c b/src/lua.c index 3b8b3da0..ee177d73 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},