imgact_aout.c: some style

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D32960
This commit is contained in:
Konstantin Belousov 2021-12-03 12:32:35 +02:00
parent c210ef1347
commit 290e05dde0

View File

@ -161,7 +161,7 @@ aout_fixup(uintptr_t *stack_base, struct image_params *imgp)
static int
exec_aout_imgact(struct image_params *imgp)
{
const struct exec *a_out = (const struct exec *) imgp->image_header;
const struct exec *a_out;
struct vmspace *vmspace;
vm_map_t map;
vm_object_t object;
@ -171,6 +171,8 @@ exec_aout_imgact(struct image_params *imgp)
unsigned long bss_size;
int error;
a_out = (const struct exec *)imgp->image_header;
/*
* Linux and *BSD binaries look very much alike,
* only the machine id is different:
@ -180,7 +182,7 @@ exec_aout_imgact(struct image_params *imgp)
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;
return (-1);
/*
* Set file/virtual offset based on a.out variant.