summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-08-17 12:15:36 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:37:38 +0200
commit90191e6ff2d156abceebafa342ec34274b6bd22a (patch)
tree4a9b1a61da7504bc0589b6c48f88f483c961843f
parent14d2b5a13ff6637f2ff1e8bd40dc8ca67e53e51b (diff)
downloadlvm2-90191e6ff2d156abceebafa342ec34274b6bd22a.zip
lvm2-90191e6ff2d156abceebafa342ec34274b6bd22a.tar.gz
lvm2-90191e6ff2d156abceebafa342ec34274b6bd22a.tar.xz
cleanup: cast to matching type
-rw-r--r--tools/dmsetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 0734ded..0ac970f 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);
}