From 0eb6a59299dd149f489455ea6e8aaedbe17b376b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 3 May 2024 15:39:32 +0200 Subject: [PATCH] const: report_name --- tools/reporter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/reporter.c b/tools/reporter.c index 3e4b0afa0..50fe3e552 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -1385,7 +1385,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t { struct report_args args = {0}; struct single_report_args *single_args = &args.single_args[REPORT_IDX_SINGLE]; - static char report_name[] = "report"; + static const char _report_name[] = "report"; struct processing_handle *handle; int r; @@ -1415,7 +1415,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t return_ECMD_FAILED; } - if (!args.log_only && !dm_report_group_push(cmd->cmd_report.report_group, NULL, report_name)) { + if (!args.log_only && !dm_report_group_push(cmd->cmd_report.report_group, NULL, (void*)_report_name)) { log_error("Failed to add main report section to report group."); destroy_processing_handle(cmd, handle); return ECMD_FAILED;