Lua plugin: make function array const
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 13:10:04 +0000 (15:10 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 13:10:04 +0000 (15:10 +0200)
src/lua.c

index 3b8b3da..ee177d7 100644 (file)
--- 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},