mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
cleanup: cast to matching type
This commit is contained in:
parent
14d2b5a13f
commit
90191e6ff2
@ -2283,7 +2283,7 @@ static int _dm_mangled_name_disp(struct dm_report *rh,
|
||||
int r = 0;
|
||||
|
||||
if ((name = dm_task_get_name_mangled((const struct dm_task *) data))) {
|
||||
r = dm_report_field_string(rh, field, (const char **) &name);
|
||||
r = dm_report_field_string(rh, field, (const char * const *) &name);
|
||||
dm_free(name);
|
||||
}
|
||||
|
||||
@ -2299,7 +2299,7 @@ static int _dm_unmangled_name_disp(struct dm_report *rh,
|
||||
int r = 0;
|
||||
|
||||
if ((name = dm_task_get_name_unmangled((const struct dm_task *) data))) {
|
||||
r = dm_report_field_string(rh, field, (const char **) &name);
|
||||
r = dm_report_field_string(rh, field, (const char * const *) &name);
|
||||
dm_free(name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user