summaryrefslogtreecommitdiffstats
path: root/tools/dmsetup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dmsetup.c')
-rw-r--r--tools/dmsetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 0734dedc..0ac970f7 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -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);
}