summaryrefslogtreecommitdiffstats
path: root/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf.c')
-rw-r--r--elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf.c b/elf.c
index f1d0a37..384502e 100644
--- a/elf.c
+++ b/elf.c
@@ -240,13 +240,13 @@ elf_load (char *fname, int load)
res = read_elf_header (fp);
- if (res < 0)
+ if (res == -1)
printf ("File read error\n");
- if (load && (res >= 0))
+ else if (load)
{
res = read_elf_body ();
- if (res < 0)
+ if (res == -1)
printf ("File read error\n");
else
printf (" Loaded %s, entry 0x%08x\n", fname, res);