diff options
author | 2010-01-15 10:29:17 +0000 | |
---|---|---|
committer | 2010-01-15 10:29:17 +0000 | |
commit | c6a2607a57c63fe0059c5495909527d8a727d659 (patch) | |
tree | f7f8a25750de3e0fb91d7876b9ddd9a71019779d /paxmacho.c | |
parent | use --skip-validation to work with newer xmlto packages (diff) | |
download | pax-utils-c6a2607a57c63fe0059c5495909527d8a727d659.tar.gz pax-utils-c6a2607a57c63fe0059c5495909527d8a727d659.tar.bz2 pax-utils-c6a2607a57c63fe0059c5495909527d8a727d659.zip |
convert core pointers to void* to avoid ugly casts and gcc alignment warnings #290543
Diffstat (limited to 'paxmacho.c')
-rw-r--r-- | paxmacho.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2003-2008 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.15 2009/10/25 20:30:49 grobian Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.16 2010/01/15 10:29:17 vapier Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -258,7 +258,7 @@ fatobj *readmacho_buffer(const char *filename, char *buffer, size_t buffer_len) int i; fatobj *fobj = ret; struct fat_arch *farch; - char *dptr = ret->data + sizeof(struct fat_header); + void *dptr = ret->data + sizeof(struct fat_header); uint32_t bufleft = ret->len - sizeof(struct fat_header); char swapped = 0; uint32_t narchs = fhdr->nfat_arch; |