mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
const: report_name
This commit is contained in:
parent
e0bd66b73a
commit
0eb6a59299
@ -1385,7 +1385,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t
|
|||||||
{
|
{
|
||||||
struct report_args args = {0};
|
struct report_args args = {0};
|
||||||
struct single_report_args *single_args = &args.single_args[REPORT_IDX_SINGLE];
|
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;
|
struct processing_handle *handle;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -1415,7 +1415,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t
|
|||||||
return_ECMD_FAILED;
|
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.");
|
log_error("Failed to add main report section to report group.");
|
||||||
destroy_processing_handle(cmd, handle);
|
destroy_processing_handle(cmd, handle);
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user