summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-11-05 09:20:08 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-11-07 21:26:11 +0100
commite2fce429cfccf974be93bc939eed6f111738659c (patch)
tree7d0c619f178822ae8cbf4e091239b4b77bbe1f7a
parentd45a9c0f5b2c5c7d5098abc056174fa09f88cc58 (diff)
downloadlvm2-e2fce429cfccf974be93bc939eed6f111738659c.tar.gz
cleanup: gcc const warning
-rw-r--r--tools/dmsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 53097b38b..ced031154 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -902,7 +902,7 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
if (!dm_report_object_is_selected(_report, &obj, _selection_cmd ? 0 : 1, &selected))
goto_out;
if (_selection_cmd && selected) {
- device_name = dm_task_get_name(dmt);
+ device_name = (char*) dm_task_get_name(dmt);
if (!_selection_cmd->fn(_selection_cmd, NULL, 1, &device_name, NULL, 1))
goto_out;
}