LVM2/tools dmsetup.c

[email protected] <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-10-25 13:36:58

Modified files:
	tools          : dmsetup.c 

Log message:
	Fix constness warning
	
	Fix usage of const 'data' pointer and also assign void* directly without
	uneeded cast for C.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/dmsetup.c.diff?cvsroot=lvm2&r1=1.146&r2=1.147

--- LVM2/tools/dmsetup.c	2010/10/15 01:10:29	1.146
+++ LVM2/tools/dmsetup.c	2010/10/25 13:36:57	1.147
@@ -2399,7 +2399,7 @@
 			 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.