Code

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 3b8b3da075b56383ee4a02edd163a9e25f3220f7..ee177d73a3139c9df5f72a736753992a1d63837e 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},