From: Zdenek Kabelac Date: Mon, 25 Oct 2010 13:36:57 +0000 (+0000) Subject: Fix constness warning X-Git-Tag: v2_02_91~1430 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7ce5ac0f037bb4748579043bf2e2f6d2c54f1824;p=lvm2.git Fix constness warning Fix usage of const 'data' pointer and also assign void* directly without uneeded cast for C. --- diff --git a/tools/dmsetup.c b/tools/dmsetup.c index a38fc4cf9..88291f772 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -2399,7 +2399,7 @@ static int _dm_deps_disp(struct dm_report *rh, struct dm_pool *mem, struct dm_report_field *field, const void *data, void *private) { - struct dm_deps *deps = (struct dm_deps *) data; + const struct dm_deps *deps = data; int i; char buf[DM_MAX_TYPE_NAME], *repstr;