diff options
author | imp <imp@FreeBSD.org> | 2012-06-28 07:33:43 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2012-06-28 07:33:43 +0000 |
commit | 492254ade092109341b4cd279e8cd509e03d6a4c (patch) | |
tree | ee62518183b18cf5bf572d875d8dbc1896f38e12 /sys/kern/imgact_aout.c | |
parent | 70f14937717a36470a6064303c7a9346e1abcf8a (diff) | |
download | FreeBSD-src-492254ade092109341b4cd279e8cd509e03d6a4c.zip FreeBSD-src-492254ade092109341b4cd279e8cd509e03d6a4c.tar.gz |
Remove an old hack I noticed years ago, but never committed.
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 3908da7..3ade6a2 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -174,9 +174,9 @@ exec_aout_imgact(struct image_params *imgp) * 0x64 for Linux, 0x86 for *BSD, 0x00 for BSDI. * NetBSD is in network byte order.. ugh. */ - if (((a_out->a_magic >> 16) & 0xff) != 0x86 && - ((a_out->a_magic >> 16) & 0xff) != 0 && - ((((int)ntohl(a_out->a_magic)) >> 16) & 0xff) != 0x86) + if (((a_out->a_midmag >> 16) & 0xff) != 0x86 && + ((a_out->a_midmag >> 16) & 0xff) != 0 && + ((((int)ntohl(a_out->a_midmag)) >> 16) & 0xff) != 0x86) return -1; /* @@ -184,7 +184,7 @@ exec_aout_imgact(struct image_params *imgp) * We do two cases: host byte order and network byte order * (for NetBSD compatibility) */ - switch ((int)(a_out->a_magic & 0xffff)) { + switch ((int)(a_out->a_midmag & 0xffff)) { case ZMAGIC: virtual_offset = 0; if (a_out->a_text) { @@ -203,7 +203,7 @@ exec_aout_imgact(struct image_params *imgp) break; default: /* NetBSD compatibility */ - switch ((int)(ntohl(a_out->a_magic) & 0xffff)) { + switch ((int)(ntohl(a_out->a_midmag) & 0xffff)) { case ZMAGIC: case QMAGIC: virtual_offset = PAGE_SIZE; |