From: Zdenek Kabelac Date: Tue, 3 Aug 2010 13:16:21 +0000 (+0000) Subject: Fix 'void*' arithmetic warning in some functions from libdm-iface.c. X-Git-Tag: v2_02_91~1625 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=30168792f4763e6befdc9ae5d0f556a57657f96b;p=lvm2.git Fix 'void*' arithmetic warning in some functions from libdm-iface.c. --- diff --git a/WHATS_NEW b/WHATS_NEW index c5d55a2b5..a36bd1992 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.73 - ================================ + Fix 'void*' arithmetic warning in some functions from libdm-iface.c. Fix const warning in dev_manager_info() and _dev_manager_lv_rmnodes(). Fix const warning in archive_file structure from archive.c. Clean generated files .exported_symbols_generated, example.conf for distclean. diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index c8ba62630..c0097bfc7 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -1104,7 +1104,7 @@ struct dm_deps *dm_task_get_deps(struct dm_task *dmt) return _dm_task_get_deps_v1(dmt); #endif - return (struct dm_deps *) (((void *) dmt->dmi.v4) + + return (struct dm_deps *) (((char *) dmt->dmi.v4) + dmt->dmi.v4->data_start); } @@ -1115,13 +1115,13 @@ struct dm_names *dm_task_get_names(struct dm_task *dmt) return _dm_task_get_names_v1(dmt); #endif - return (struct dm_names *) (((void *) dmt->dmi.v4) + + return (struct dm_names *) (((char *) dmt->dmi.v4) + dmt->dmi.v4->data_start); } struct dm_versions *dm_task_get_versions(struct dm_task *dmt) { - return (struct dm_versions *) (((void *) dmt->dmi.v4) + + return (struct dm_versions *) (((char *) dmt->dmi.v4) + dmt->dmi.v4->data_start); }