Skip to contentSkip to conversation

LVM2/tools dmsetup.c

PATCH [email protected] 1 participant 1 message Oct 25, 2010

lore
Share & tools
lore
#0 lore raw

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

tools/dmsetup.c +1 -1
@@ -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;