aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-05 00:51:33 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-05 00:51:33 +0000
commit01056e991a2b90a7126adff4ece9e0fcbc801f57 (patch)
treeb07a968d2741878e7000852a409a4c39482b9b93 /pspax.c
parentadd basic sanity check if user didnt give us any paths to scan (diff)
downloadpax-utils-01056e991a2b90a7126adff4ece9e0fcbc801f57.tar.gz
pax-utils-01056e991a2b90a7126adff4ece9e0fcbc801f57.tar.bz2
pax-utils-01056e991a2b90a7126adff4ece9e0fcbc801f57.zip
handle any bitsize / endian type
Diffstat (limited to 'pspax.c')
-rw-r--r--pspax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pspax.c b/pspax.c
index 51c83bb..e420e0f 100644
--- a/pspax.c
+++ b/pspax.c
@@ -41,7 +41,7 @@
#define PROC_DIR "/proc"
-static const char *rcsid = "$Id: pspax.c,v 1.8 2005/04/03 18:03:22 vapier Exp $";
+static const char *rcsid = "$Id: pspax.c,v 1.9 2005/04/05 00:51:33 vapier Exp $";
/* helper functions for showing errors */
@@ -144,7 +144,7 @@ static const char *get_pid_type(int pid)
snprintf(fname, sizeof(fname), PROC_DIR "/%d/exe", pid);
if ((elf = readelf(fname)) == NULL)
return ret;
- ret = (char *)get_elfetype(elf->ehdr->e_type);
+ ret = (char *)get_elfetype(elf);
unreadelf(elf);
return ret;
}