From e228db3a7e72f10503a1b2e7002b257aab2a3524 Mon Sep 17 00:00:00 2001 From: Sunil1783 Date: Wed, 22 Jan 2020 05:18:56 -0800 Subject: [PATCH] Code changes to support ppc64le platform: Reverted the changes for renaming 'luaL_reg' to 'luaL_Reg' , As this renaming will be done through CMakeList.txt Patch command while building moonjit repo for ppc64le platform. Signed-off-by: Sunil1783 --- userspace/engine/formats.cpp | 2 +- userspace/engine/rules.cpp | 2 +- userspace/falco/falco_outputs.cpp | 2 +- userspace/falco/logger.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/userspace/engine/formats.cpp b/userspace/engine/formats.cpp index 868eaf85cb7..b95a78c2eaf 100644 --- a/userspace/engine/formats.cpp +++ b/userspace/engine/formats.cpp @@ -26,7 +26,7 @@ bool falco_formats::s_json_output = false; bool falco_formats::s_json_include_output_property = true; sinsp_evt_formatter_cache *falco_formats::s_formatters = NULL; -const static struct luaL_Reg ll_falco [] = +const static struct luaL_reg ll_falco [] = { {"formatter", &falco_formats::formatter}, {"free_formatter", &falco_formats::free_formatter}, diff --git a/userspace/engine/rules.cpp b/userspace/engine/rules.cpp index ffb6addee22..24267069031 100644 --- a/userspace/engine/rules.cpp +++ b/userspace/engine/rules.cpp @@ -24,7 +24,7 @@ extern "C" { } #include "falco_engine.h" -const static struct luaL_Reg ll_falco_rules [] = +const static struct luaL_reg ll_falco_rules [] = { {"clear_filters", &falco_rules::clear_filters}, {"add_filter", &falco_rules::add_filter}, diff --git a/userspace/falco/falco_outputs.cpp b/userspace/falco/falco_outputs.cpp index 14f1bdec4d2..384831e3542 100644 --- a/userspace/falco/falco_outputs.cpp +++ b/userspace/falco/falco_outputs.cpp @@ -27,7 +27,7 @@ limitations under the License. using namespace std; using namespace falco::output; -const static struct luaL_Reg ll_falco_outputs [] = +const static struct luaL_reg ll_falco_outputs [] = { {"handle_http", &falco_outputs::handle_http}, {"handle_grpc", &falco_outputs::handle_grpc}, diff --git a/userspace/falco/logger.cpp b/userspace/falco/logger.cpp index 2708fb1e3e1..770d19298dd 100644 --- a/userspace/falco/logger.cpp +++ b/userspace/falco/logger.cpp @@ -20,7 +20,7 @@ limitations under the License. #include "falco_common.h" -const static struct luaL_Reg ll_falco [] = +const static struct luaL_reg ll_falco [] = { {"syslog", &falco_logger::syslog}, {NULL,NULL}