summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-30 12:00:06 +0000
committerMike Frysinger <vapier@gentoo.org>2008-12-30 12:00:06 +0000
commit7a9f58666405231328e2136f8a61c55358221387 (patch)
tree9dc76af17546c0ba69b99ae8e3e6c700b44bc783 /paxelf.c
parentundo accidential 'fix' (diff)
downloadpax-utils-7a9f58666405231328e2136f8a61c55358221387.tar.gz
pax-utils-7a9f58666405231328e2136f8a61c55358221387.tar.bz2
pax-utils-7a9f58666405231328e2136f8a61c55358221387.zip
drop pointless casts on mmap() return
Diffstat (limited to 'paxelf.c')
-rw-r--r--paxelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/paxelf.c b/paxelf.c
index bf0b0af..b4dd242 100644
--- a/paxelf.c
+++ b/paxelf.c
@@ -1,7 +1,7 @@
/*
* Copyright 2003-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.59 2008/06/17 17:07:57 solar Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.60 2008/12/30 12:00:06 vapier Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -545,7 +545,7 @@ elfobj *_readelf_fd(const char *filename, int fd, size_t len, int read_only)
return NULL;
}
- buffer = (char*)mmap(0, len, PROT_READ | (read_only ? 0 : PROT_WRITE), (read_only ? MAP_PRIVATE : MAP_SHARED), fd, 0);
+ buffer = mmap(0, len, PROT_READ | (read_only ? 0 : PROT_WRITE), (read_only ? MAP_PRIVATE : MAP_SHARED), fd, 0);
if (buffer == (char*)MAP_FAILED) {
warn("mmap on '%s' of %li bytes failed :(", filename, (unsigned long)len);
return NULL;