diff options
author | 2008-12-30 12:00:06 +0000 | |
---|---|---|
committer | 2008-12-30 12:00:06 +0000 | |
commit | 7a9f58666405231328e2136f8a61c55358221387 (patch) | |
tree | 9dc76af17546c0ba69b99ae8e3e6c700b44bc783 /paxmacho.c | |
parent | undo accidential 'fix' (diff) | |
download | pax-utils-7a9f58666405231328e2136f8a61c55358221387.tar.gz pax-utils-7a9f58666405231328e2136f8a61c55358221387.tar.bz2 pax-utils-7a9f58666405231328e2136f8a61c55358221387.zip |
drop pointless casts on mmap() return
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.9 2008/10/19 18:11:59 grobian Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.10 2008/12/30 12:00:06 vapier Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -239,7 +239,7 @@ fatobj *readmacho_fd(const char *filename, int fd, size_t len) if (len <= sizeof(struct fat_header)) return NULL; - data = (char*)mmap(0, len, PROT_READ, MAP_PRIVATE, fd, 0); + data = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, 0); if (data == (char*)MAP_FAILED) { warn("mmap on '%s' of %llu bytes failed :(", filename, (unsigned long long)len); |