aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-20 00:21:03 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-20 00:21:03 +0000
commit3710f609453ed3ea311801fc6c1331047c117b6f (patch)
treefc06e096385baf6b490884b2ac07111181276431 /scanelf.c
parentignore invalid symbols in textrel lookup code (diff)
downloadpax-utils-3710f609453ed3ea311801fc6c1331047c117b6f.tar.gz
pax-utils-3710f609453ed3ea311801fc6c1331047c117b6f.tar.bz2
pax-utils-3710f609453ed3ea311801fc6c1331047c117b6f.zip
cast pointers as void* to get rid of warnings
Diffstat (limited to 'scanelf.c')
-rw-r--r--scanelf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scanelf.c b/scanelf.c
index 3d2ca78..0ad8ea4 100644
--- a/scanelf.c
+++ b/scanelf.c
@@ -1,7 +1,7 @@
/*
* Copyright 2003-2006 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.109 2006/01/20 00:20:30 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.110 2006/01/20 00:21:03 vapier Exp $
*
* Copyright 2003-2006 Ned Ludd - <solar@gentoo.org>
* Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org>
@@ -9,7 +9,7 @@
#include "paxinc.h"
-static const char *rcsid = "$Id: scanelf.c,v 1.109 2006/01/20 00:20:30 vapier Exp $";
+static const char *rcsid = "$Id: scanelf.c,v 1.110 2006/01/20 00:21:03 vapier Exp $";
#define argv0 "scanelf"
#define IS_MODIFIER(c) (c == '%' || c == '#')
@@ -333,7 +333,7 @@ static char *scanelf_file_textrels(elfobj *elf, char *found_textrels, char *foun
*found_textrels = 1; \
/* locate this relocation symbol name */ \
sym = SYM ## B (elf->data + EGET(symtab->sh_offset)); \
- if (sym > elf->data) { \
+ if ((void*)sym > (void*)elf->data) { \
warn("corrupt ELF symbol"); \
continue; \
} \