summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_gzip.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-06-28 07:33:43 +0000
committerimp <imp@FreeBSD.org>2012-06-28 07:33:43 +0000
commit492254ade092109341b4cd279e8cd509e03d6a4c (patch)
treeee62518183b18cf5bf572d875d8dbc1896f38e12 /sys/kern/imgact_gzip.c
parent70f14937717a36470a6064303c7a9346e1abcf8a (diff)
downloadFreeBSD-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_gzip.c')
-rw-r--r--sys/kern/imgact_gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c
index f61334a..1333abe 100644
--- a/sys/kern/imgact_gzip.c
+++ b/sys/kern/imgact_gzip.c
@@ -161,7 +161,7 @@ do_aout_hdr(struct imgact_gzip * gz)
* Set file/virtual offset based on a.out variant. We do two cases:
* host byte order and network byte order (for NetBSD compatibility)
*/
- switch ((int) (gz->a_out.a_magic & 0xffff)) {
+ switch ((int) (gz->a_out.a_midmag & 0xffff)) {
case ZMAGIC:
gz->virtual_offset = 0;
if (gz->a_out.a_text) {
@@ -177,7 +177,7 @@ do_aout_hdr(struct imgact_gzip * gz)
break;
default:
/* NetBSD compatibility */
- switch ((int) (ntohl(gz->a_out.a_magic) & 0xffff)) {
+ switch ((int) (ntohl(gz->a_out.a_midmag) & 0xffff)) {
case ZMAGIC:
case QMAGIC:
gz->virtual_offset = PAGE_SIZE;
OpenPOWER on IntegriCloud