From 368f4ecd555efbef0cdd61a18f9b3ca5115f74c2 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 14 Aug 2016 15:10:04 +0200 Subject: [PATCH] Lua plugin: make function array const --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- 2.30.2