summaryrefslogtreecommitdiff
path: root/ldso/util
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-01 19:06:35 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-01 19:06:35 +0000
commit63882a13e073afa4efed39459215e239bfa23f9d (patch)
treef046738fb0fe5bd1920ff9b0c4a979d01cf09d32 /ldso/util
parentb30fc2cc3c281d55e6c3b7d6707b504e4ca3acd3 (diff)
Another cleanup. Never pass addresses as an 'int'
-Erik
Diffstat (limited to 'ldso/util')
-rw-r--r--ldso/util/ldd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c
index a0b0338eb..ea4f1f5ef 100644
--- a/ldso/util/ldd.c
+++ b/ldso/util/ldd.c
@@ -23,7 +23,7 @@
#include <unistd.h>
#include <errno.h>
#include <sys/wait.h>
-#include <linux/elf.h>
+#include "../d-link/elf.h"
#include "../config.h"
#include "readelf.h"
@@ -134,7 +134,7 @@ int is_bin(char *argv0, char *prog)
else if (N_MAGIC(exec) != ZMAGIC && N_MAGIC(exec) != QMAGIC &&
N_MAGIC(exec) != OMAGIC)
{
- struct elfhdr elf_hdr;
+ elfhdr elf_hdr;
rewind(file);
fread(&elf_hdr, sizeof elf_hdr, 1, file);
@@ -143,7 +143,7 @@ int is_bin(char *argv0, char *prog)
fprintf(stderr, "%s: %s is not a.out or ELF\n", argv0, prog);
else
{
- struct elf_phdr phdr;
+ elf_phdr phdr;
int i;
/* Check its an exectuable, library or other */