summaryrefslogtreecommitdiff
path: root/lib/thin
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-02-13 19:53:07 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-02-13 19:56:02 +0100
commitc3642957c5427d69b6aac45d2d1088786967cabd (patch)
tree7432e4c2fe91d4d69f128cb47128df54dcbce192 /lib/thin
parent0eb9daf602281d233c83e5823b3c6297fb541deb (diff)
downloadlvm2-c3642957c5427d69b6aac45d2d1088786967cabd.tar.gz
gcc: remove warns about free of const
Diffstat (limited to 'lib/thin')
-rw-r--r--lib/thin/thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thin/thin.c b/lib/thin/thin.c
index a679784ec..b6eb3aaae 100644
--- a/lib/thin/thin.c
+++ b/lib/thin/thin.c
@@ -745,7 +745,7 @@ static int _thin_target_present(struct cmd_context *cmd,
static void _thin_destroy(struct segment_type *segtype)
{
- dm_free(segtype->dso);
+ dm_free((void *) segtype->dso);
dm_free(segtype);
}