From c94acdee19c22160bdcf9dfec31b192da58e36e1 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Wed, 16 Jul 2025 18:18:27 +0200 Subject: [PATCH] refactore(userspace/falco): use static_cast rather than c style cast Signed-off-by: Samuel Gaist --- userspace/falco/stats_writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/falco/stats_writer.cpp b/userspace/falco/stats_writer.cpp index 2c8e910a..7edf1e06 100644 --- a/userspace/falco/stats_writer.cpp +++ b/userspace/falco/stats_writer.cpp @@ -442,7 +442,7 @@ void stats_writer::collector::get_metrics_output_fields_additional( nlohmann::json j; malloc_stats_print( [](void* to, const char* from) { - nlohmann::json* j = (nlohmann::json*)to; + nlohmann::json* j = static_cast(to); *j = nlohmann::json::parse(from); }, &j,