diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:34:41 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:34:41 +0000 |
commit | 4ebc6404ee5453a5ade850e086befe5e10ec7242 (patch) | |
tree | cdfd52e34ca9384608f0417777ea3793f2e3b0d0 /lib/format_text/text_label.c | |
parent | ab8b85fb80351c9fcd15d5b98cbe3d9be337923e (diff) | |
download | lvm2-4ebc6404ee5453a5ade850e086befe5e10ec7242.tar.gz lvm2-4ebc6404ee5453a5ade850e086befe5e10ec7242.tar.xz lvm2-4ebc6404ee5453a5ade850e086befe5e10ec7242.zip |
Void* arithmetic replaced with char*
Diffstat (limited to 'lib/format_text/text_label.c')
-rw-r--r-- | lib/format_text/text_label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/format_text/text_label.c b/lib/format_text/text_label.c index e459cdef..675dbe84 100644 --- a/lib/format_text/text_label.c +++ b/lib/format_text/text_label.c @@ -52,7 +52,7 @@ static int _text_write(struct label *label, void *buf) strncpy((char *)lh->type, label->type, sizeof(label->type)); - pvhdr = (struct pv_header *) ((void *) buf + xlate32(lh->offset_xl)); + pvhdr = (struct pv_header *) ((char *) buf + xlate32(lh->offset_xl)); info = (struct lvmcache_info *) label->info; pvhdr->device_size_xl = xlate64(info->device_size); memcpy(pvhdr->pv_uuid, &info->dev->pvid, sizeof(struct id)); @@ -266,7 +266,7 @@ static int _text_read(struct labeller *l, struct device *dev, void *buf, char *creation_host; struct mda_header *mdah; - pvhdr = (struct pv_header *) ((void *) buf + xlate32(lh->offset_xl)); + pvhdr = (struct pv_header *) ((char *) buf + xlate32(lh->offset_xl)); if (!(info = lvmcache_add(l, (char *)pvhdr->pv_uuid, dev, FMT_TEXT_ORPHAN_VG_NAME, |