refactore(userspace/falco): use static_cast rather than c style cast

Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
Samuel Gaist 2025-07-16 18:18:27 +02:00
parent 40f2b73d7e
commit c94acdee19

View File

@ -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<nlohmann::json*>(to);
*j = nlohmann::json::parse(from);
},
&j,