]> sourceware.org Git - lvm2.git/commitdiff
Fix 'void*' arithmetic warning in some functions from libdm-iface.c.
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 3 Aug 2010 13:16:21 +0000 (13:16 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 3 Aug 2010 13:16:21 +0000 (13:16 +0000)
WHATS_NEW
libdm/ioctl/libdm-iface.c

index c5d55a2b5d12fba8b146409bf4b58af9a8b54206..a36bd1992104a4b19b1bc3b4e64267e22fb81a16 100644 (file)
--- 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.
index c8ba62630a9b3267e8b1e76fedf6a5da57fd2199..c0097bfc7f6312e24af2de8c3f78f78e336455bc 100644 (file)
@@ -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);
 }
 
This page took 0.050183 seconds and 5 git commands to generate.