From c755772a23210277bd158d180705514fee9274ec Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Oct 2010 13:36:57 +0000 Subject: [PATCH] Fix constness warning Fix usage of const 'data' pointer and also assign void* directly without uneeded cast for C. --- tools/dmsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.5